Open defeo opened 2 months ago
So far my investigation leads me to think this is due to Leaflet Markers having registered an onfocus
event which wants to pan something into view, but for some reason the panning ends up not knowing what coordinates to pan to.
I'm unsure whether this is due to a bug in Leaflet or in my code.
Whenever a marker is selected, the JS console shows the following uncaught exception:
The same exception is also fired when a marker is selected and the browser tab gains focus: try changing tab and coming back.
This seems specific to Markers: it doesn't happen when a Polyline (e.g., a hike) is selected.
The uncaught exception doesn't affect functionality, it just pollutes the console.