Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
591
stars
192
forks
source link
While using vectorGrid.protobuf for displaying vector tiles on map i was not able to capture mouse events initially until when i zoomed out to minzoom level #284
this is code snippet for displaying the vector tile layer on the map
vectorTileLayer = new (L as any).vectorGrid.protobuf(layer.url, {
...layer.layerOptions,
interactive: true,
});
because of the interactive = true the pointer events are being enabled but this is causing additional issue.when the map is initially loaded no mouse event is working even drag and click also not working until when the map is zoomed out to minimum zoom level after then everything is working fine.
this is code snippet for displaying the vector tile layer on the map vectorTileLayer = new (L as any).vectorGrid.protobuf(layer.url, { ...layer.layerOptions, interactive: true, }); because of the interactive = true the pointer events are being enabled but this is causing additional issue.when the map is initially loaded no mouse event is working even drag and click also not working until when the map is zoomed out to minimum zoom level after then everything is working fine.