Leaflet.VectorGrid
Leaflet.VectorGrid copied to clipboard
TileStache GeoJSON compatibility
TileStache can serve slices of GeoJSON from PostGIS, presenting a URL of form:
http://example.org/path/tile.cgi/streets/{z}/{x}/{y}.json
The example VectorGrid.Protobuf URL is:
https://free-{s}.tilehosting.com/data/v3/{z}/{x}/{y}.pbf.
This seems like a match made to be no?
Should most likely be very straight forward to add, given that GeoJSON already feeds data to the slicer, and we already load tiles in the protobuf implementation, as you already noted.
Having said that, I don't think it's likely that any of the maintainers will go ahead and just implement this, given pretty limited resources at the moment.
I'd be happy to answer questions to help you with this, if it's something you'd be willing to implement. Another option would be if you'd be willing to sponsor development of this feature.
I don't think this is as much a priority for me since Tangram works as a leaflet plugin and can parse either GeoJSON or protobuf vector tiles. I haven't actually tried it out yet