mapbox / mapbox-studio-classic

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

Mapbox geodata #1299

Open alexcroox opened 9 years ago

alexcroox commented 9 years ago

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?

springmeyer commented 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.

ajashton commented 9 years ago

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.

alexcroox commented 9 years ago

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?

wilhelmberg commented 9 years ago

@alexcroox try the following:

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.

springmeyer commented 9 years ago

@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.