Open treecon opened 1 year ago
I am using vectorGrid.protobuf with .pbf tiles served from tileserver-gl.
vectorGrid.protobuf
While tiles are shown ok, and I also have access to feature properties using mouse events, I cannot get the geometry of the feature.
I have also tried e.layer.toGeoJSON() (e is a click event) but while method exists, it will produce an error (missing _latlngs property).
e.layer.toGeoJSON()
e
_latlngs
Any ideas?
P.S.1 Is there any way to use this package with .geojson (instead of .pbf) responses that tileserver-gl can also send?
P.S.2 Can I somehow handle all rendered features, e.g. as a GeoJSON? This way I could have access to their geometries using their IDs.
I am using
vectorGrid.protobuf
with .pbf tiles served from tileserver-gl.While tiles are shown ok, and I also have access to feature properties using mouse events, I cannot get the geometry of the feature.
I have also tried
e.layer.toGeoJSON()
(e
is a click event) but while method exists, it will produce an error (missing_latlngs
property).Any ideas?
P.S.1 Is there any way to use this package with .geojson (instead of .pbf) responses that tileserver-gl can also send?
P.S.2 Can I somehow handle all rendered features, e.g. as a GeoJSON? This way I could have access to their geometries using their IDs.