mapbox / mapbox-studio-classic

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

how to export mbtiles that containt vector tiles #1355

Open rakucmr opened 9 years ago

rakucmr commented 9 years ago

I'm trying to import shapefiles from http://download.geofabrik.de/europe.html, what style should I use? After import I want to export them in mbtiles format, but the tiles should be vector so I can use them with your mapbox-gl javascript version. Can I do this? Or do you have other way to export vector mbtiles for a hole country?

amyleew commented 9 years ago

@raku The simpliest process: download your data in .shp.zip format then upload the .shp.zip directly to your Mapbox account uploads page or use Mapbox Upload API via the command line. This will convert your data into vector tiles. After your data is successfully, use the provided map ID which you can then use to style with GL and extend with Mapbox-GL JS.

If you need raw .mbtiles, import the same .shp.zip file into Mapbox Studio and there will be an option to Export to MBTiles. This Studio source quickstart should help you through the process.