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

Overlay only visible as small bar on the left #60

Open
Nappyy opened this issue Oct 30, 2020 · 2 comments
Open

Overlay only visible as small bar on the left #60

Nappyy opened this issue Oct 30, 2020 · 2 comments

Comments

@Nappyy
Copy link

Nappyy commented Oct 30, 2020

Hi there,

in my Map the overlay is only Visible as small bar on the left (mobile and desktop).
There is also no text visible.
Screenshot Desktop: https://ibb.co/JyTqJhn
Screenshot Mobile: https://ibb.co/YWN2sSr

I've tested it in iOS Safari (iOS 13.5 & iPadOS 14.1) and MacOS Safari and Firefox.

I'm using leafletjs 1.7.1 and GestureHandling (leaflet-gesture-handling.css & leaflet-gesture-handling.js from dist folder)

What can I do to fix this issue?

Kind regards,
Kai

@uree
Copy link

uree commented Oct 7, 2021

Here's a quick CSS based fix for anyone facing the same issue

#map::after {
  width: 100%;
  z-index: 1;
}

#map.leaflet-gesture-handling-scroll-warning::after {
  z-index: 1001;
}

#map.leaflet-gesture-handling-touch-warning::after {
  z-index: 1001;
}

@Nappyy
Copy link
Author

Nappyy commented Oct 7, 2021

Hi @uree,

thanks, this is working well on desktop clients.
Unfortunately it permanently disables the overlay on mobile clients (no matter if scrolling, tab or touch with two fingers).

Do you have an advice?

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

2 participants