3

Would it be technically possible to have Mapbox's compact vector tile format sent to the client (instead of PNG tiles), then rendered inside the browser with JS code?

Second question: when using TM2/Mapbox Studio, why are the tiles rendered remotely? Couldn't Mapnik be directly used locally to render the tiles? (still using remote data sources like Mapbox Streets)

1
  • 1
    Welcome to the site Erik. Please note that the format here is best suited for one question at a time. For further details please see gis.stackexchange.com/help
    – Aaron
    Aug 31, 2014 at 14:14

2 Answers 2

2

Would it be technically possible to have Mapbox's compact vector tile format sent to the client (instead of PNG tiles), then rendered inside the browser with JS code?

Take a look here:

Second question : when using TM2/Mapbox Studio, why are the tiles rendered remotely?

They are rendered locally, in Mapbox Studio.

1
  • Hi Alex. Thanks for your reply. I'm already aware of Mapbox GL, it's awesome but my question was related to 'classical' vector tiles. When you say that the tiles are rendered locally in Mapbox Studio, do you mean by node or by JS on the client side?
    – Erik
    Sep 3, 2014 at 8:06
0

Would it be technically possible to have Mapbox's compact vector tile format sent to the client (instead of PNG tiles), then rendered inside the browser with JS code

That's exactly what Mapbox-GL-JS does. Leaflet.MapboxVectorTile is another option, implemented as a plugin to Leaflet.

when using TM2/Mapbox Studio, why are the tiles rendered remotely? Couldn't Mapnik be directly used locally to render the tiles? (still using remote data sources like Mapbox Streets)

The Mapbox Studio you're referring to (now "Mapbox Studio Classic") does render tiles locally.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.