Interactive leaflet map not interactive on mobile #164
scottyla19
started this conversation in
General
Replies: 1 comment 3 replies
-
Hi @scottyla19 I can reproduce the issue - when I view your example on my desktop browser and shrink the window to the minimum width, zoom and mouse hover both seem to be disabled. I don't have a ready solution for you at the moment but @jimjam-slam might have an idea. Indeed, as mentioned in the previous discussion, seems like we could help users out by adding a more systematic treatment of html widgets! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using a leaflet in a closeread document here and running live here
I used the advice from a previous discussion to get my leaflet map to show up. It looks great but I lose the interactivity when viewing on mobile in portrait mode. I am guessing it is due to not enough room on the screen to register the scroll of the page and the touches, pans, and pinches within the map. If the phone is rotated into landscape mode it works fine as it seems there is now enough room to register the interactivity for the map.
I'm wondering if there are other CSS or maybe JS tricks to get interactivity to work in portrait mode on mobile?
Beta Was this translation helpful? Give feedback.
All reactions