You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is perhaps more related to Leaflet than wax. When clicking the zoom controls, if the zoom button was over a utfGrid clickable area, then both the map would zoom as well as wax handing a click event.
To solve this, in leaflet.js "_createButton" where the zoom control buttons are created, I added the following to prevent propagation:
This is perhaps more related to Leaflet than wax. When clicking the zoom controls, if the zoom button was over a utfGrid clickable area, then both the map would zoom as well as wax handing a click event.
To solve this, in leaflet.js "_createButton" where the zoom control buttons are created, I added the following to prevent propagation:
L.DomEvent.addListener(link, 'mousedown', L.DomEvent.stopPropagation);
L.DomEvent.addListener(link, 'mouseup', L.DomEvent.stopPropagation);
L.DomEvent.addListener(link, 'touchstart', L.DomEvent.stopPropagation);
L.DomEvent.addListener(link, 'touchend', L.DomEvent.stopPropagation);
Which seems to have fixed the issue.
The text was updated successfully, but these errors were encountered: