feat: add MapOptions.onPointerMove callback#2137
feat: add MapOptions.onPointerMove callback#2137JaffaKetchup merged 4 commits intofleaflet:masterfrom
MapOptions.onPointerMove callback#2137Conversation
|
Hey @ReinisSprogis, just wondering why one of the existing movement listeners wouldn't work? The |
|
Hi @JaffaKetchup onPositionChanged does not work, because position of MapCamera does not change when map pan is disabled. Needed to get a pointer position as LatLng when tapping down and moving pointer. If |
MapOptions.onPointerMove callback
I needed a onPointerMove functionality but there was only onPointerHover. For example when I want to drag graphics on map, I disable map pan onTapDown and can use onPointerMove to reposition graphics. This cannot be done with onPointerHover as it does not respond when tap is also down. There already was an _onPointerMove method just not exposed to user. Any reason not to do this?