You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use {projection: "globe"} to init map will cause th error .
constmap=newmapboxgl.Map({container: "map",// container IDstyle: "mapbox://styles/mapbox/dark-v10",// style URLcenter: [106.55,29.57],// starting position [lng, lat]zoom: 2,// starting zoomprojection: "globe",// display the map as a 3D globe});map.addControl(newMapboxLanguage({defaultLanguage: "zh-Hans",}));
The error info
Error: terrain: terrain is missing required property "source"
at Object.Mi [as emitValidationErrors] (validate_style.js:13:41)
at Ht (style.js:57:5)
at ei.setState (style.js:647:13)
at Map._updateDiff (map.js:1887:28)
at Map._diffStyle (map.js:1881:18)
at Map.setStyle (map.js:1822:18)
at MapboxLanguage._initialStyleUpdate (index.js:141:13)
at Map.fire (evented.js:129:26)
at ei.fire (evented.js:144:24)
at ei._load (style.js:355:14)
if i do not use {projection: "globe"} , it work find !
The text was updated successfully, but these errors were encountered:
When I use
{projection: "globe"}
to init map will cause th error .The error info
if i do not use
{projection: "globe"}
, it work find !The text was updated successfully, but these errors were encountered: