[GIS] Wrapping vector tiles generated by geojson-vt

geojsonmapboxvector-tiles

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.

Best Answer

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.

Related Question