Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No hover event triggered for icons when panning to left #97

Open
kparikh9 opened this issue Mar 5, 2022 · 0 comments
Open

No hover event triggered for icons when panning to left #97

kparikh9 opened this issue Mar 5, 2022 · 0 comments

Comments

@kparikh9
Copy link

kparikh9 commented Mar 5, 2022

As user pans to left of original leaflet map, some icons don't recognize that user is hovering over it. This means that when a user clicks on it, they aren't zoomed into specific boundaries with divided clusters in center, as per usual. Icons in North America remain functional - icons in rest of world don't.

https://www.loom.com/share/8b2d685f662c471f9b01cb668b0e2755

One potential solution is to turn off wrapping of world, thus turning off infinite panning: https://stackoverflow.com/questions/20638118/leaflet-js-disable-duplicated-world-maps

This solution turns off Leaflets map, however we would also need to prevent user scrolling and Mapnik tiles from being served as user scrolls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant