Open alexcroox opened 9 years ago
They are not available in the form of shapefiles in Mapbox Studio - instead Mapbox Studio provides more and better data built-in, in the form of vector tiles. So, the way we look at this is that Mapbox Studio fundamentally comes with better data built-in. See https://www.mapbox.com/developers/vector-tiles/mapbox-streets/ for all the details of the built-in data that is what is available to you when you start styling a new map.
If you still want to use Natural Earth data, we also have created an example source project for it that you can use and build on: https://github.com/mapbox/natural-earth-tm2/
Be sure to also read the source quickstart, source manual, and PostGIS manual parts of the documentation to learn about how Mapbox Studio deals with data in a different way than TileMill.
I've been trying to import kml files to mapbox studio but the app either fails to add them, or quickly stops responding. They are 19MB and 64MB files ("Regional fisheries bodies, large marine divisions). Would you recommend I try adding them to tile mill so they are baked into image tiles instead of too many vectors for mapbox studio to handle?
@alexcroox try the following:
ogr2ogr -f "ESRI Shapefile" out.shp YOUR.kml -t_srs EPSG:3857
shapeindex
on your shape file: shapeindex out.shp
shapeindex
can be found in this directory: C:\Program Files\mapbox-studio\resources\app\node_modules\mapnik\lib\binding\node-v11-win32-x64
Depeding on what operating system you are on and how you installed the path might differ a bit.
Let me know, if you need further instructions.
@alexcroox - I agree with @BergWerkGIS's recommendation that if you convert KML to a different format it should load well. Another option is to convert to GeoJSON and to install this development build of Mapbox Studio: https://mapbox.s3.amazonaws.com/mapbox-studio/mapbox-studio-win32-x64-4abb776.exe. It includes an optimized GeoJSON reader. I would welcome your help testing, so let me know if you get a chance.
I'm interested in adding some of these optimised public sources of data to my map:
https://www.mapbox.com/tilemill/docs/manual/mapbox-geodata/#mapbox_geodata
However it references importing these into TileMill, the project that this one is supposed to replace. I can't find in the Mapbox studio interface where to browse/add these?