Leaflet / Leaflet.VectorGrid

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

Fractional Zoomlevel and Clickhandler #174

Open dooley opened 6 years ago

dooley commented 6 years ago

I'm using Leaflet 1.3.1 - because https://github.com/Leaflet/Leaflet/issues/6245 - and VectorGrid 1.3.0 for mvt with L.canvas.tile as rendererFactory.

The defined click-handler works as expected only if zoomlevel is integer (6, 5, 19, ..). If zoomlevel gets fractional (6.25, 10.75, ...), mousepointer change back to normal and click on a feature does nothing.

Looks like a bug?

Edit: With rendererFactory: L.svg.tile it's ok!

ssontag55 commented 3 years ago

@dooley you find a solution for this?

dooley commented 3 years ago

Sorry, no.