I've followed the example in geojson-vt, and am able to generate vector tiles from my geoJson source. However, I can't read these tiles with mapbox-gl-js or Leaflet.MapboxVectorTile because I don't seem to be wrapping the tiles in a protocol buffer correctly.

Is there an example or package that automate this protobuf encoding of vector tiles? I've looked at geobuf, but that does not appear to be able to handle the tiles from geojson-vt.


I have very similar problem, except I try to use angular-leaflet-directive. So far i couldn't find much about it. However, please have a look at this example and the block itself. This may give you more ideas on how to link geojson-vt with leaflet.

  • That Leaflet example handles my huge GeoJSON file super fast! Any ideas how to get Mapbox GL JS to work that way? (My current platform uses Mapbox and is too slow w/ my GeoJSON file) – Andrew Nov 11 '16 at 17:05

This is an old post, but if you happen here then you can direct yourself to vt-pbf, https://github.com/mapbox/vt-pbf. Does the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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