MaptimePHL / making-tiles

1 stars 0 forks source link

Looking into exporting tiles from MapBox Studio #4

Open rhewitt22 opened 10 years ago

rhewitt22 commented 10 years ago

Will look more into this when I get some time. Sounds like TM1 .mbtiles is completely raster, and since MapBox Studio is working with vector tiles some conversion needs to take place.

Some discussion from mapbox studio issues:

hamhands commented 10 years ago

Haven't checked into this, but I think you have to load your own data in order to export mbtiles. Need to verify this, but with studio automating the osm data piece, this might be their way to sustain the new feature.

On Wed, Oct 15, 2014 at 1:04 PM, Roy Hewitt notifications@github.com wrote:

Will look more into this when I get some time. Sounds like TM1 .mbtiles is completely raster, and since MapBox Studio is working with vector tiles some conversion needs to take place.

Some discussion from mapbox studio issues:

— Reply to this email directly or view it on GitHub https://github.com/MaptimePHL/making-tiles/issues/4.

Patrick Hammons @hamhandedly

gagecarto commented 10 years ago

I am looking into this right now as well. I have a couple different projects that depend on pre-rendered .mbtiles and I really wish I didnt have to use tilemill for those projects.

This issue could use a comprehensive overview with solutions

james-morrison commented 8 years ago

There are some notes on how to do this at the link below http://www.azavea.com/blogs/labs/2015/05/converting-mapbox-studio-vector-tiles-to-rasters/

gagecarto commented 8 years ago

Would the methods on the azavea example violate MapBox's TOS?

Fil commented 8 years ago

I did this just yesterday with https://github.com/twpayne/tilecloud

URI="http://localhost:3000/style/%(z)d/%(x)d/%(y)d.png?id=tmstyle:///Users/fil/myproject.tm2&koam8kth"
./tc-copy -v -o --bounding-pyramid 0/0/0:5/1/1 $URI myproject.mbtiles

to get the value for URI I opened the “debug” panel in Mapbox Studio and copied the address of one of the tiles. The bounding-pyramid option says that I'm copying the whole world, zooms z0 to z5.