Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
598 stars 194 forks source link

TileStache GeoJSON compatibility #106

Open radumas opened 7 years ago

radumas commented 7 years ago

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?

perliedman commented 7 years ago

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.

radumas commented 7 years ago

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