mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

Invalid GL Json #1585

Closed elprincipe47 closed 5 years ago

elprincipe47 commented 5 years ago

Hi, I am trying to add a Layer to my Style in Mapbox Studio but I am getting an Error : Invalid GL Json NB : My Geojson is Valid json according to http://geojsonlint.com

image

mzdraper commented 5 years ago

Hi, it isn't possible to transfer styles from Mapbox Studio Classic to Mapbox Studio. While Mapbox Studio Classic styles were built using CartoCSS, Mapbox Studio now uses the Mapbox GL Style Specification. The Mapbox GL style is an object that defines what data to draw in the map, the order to draw it in, and how to style it. The style’s JSON structure is specific to the Mapbox GL Native renderer implementation, making cross-compatibility with CartoCSS-based styles impossible.

To start styling with Mapbox Studio, check out our Mapbox Studio Manual for a comprehensive guide to using Mapbox Studio.