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

Add some fading-out to warning overlay #40

Open
Raruto opened this issue May 16, 2019 · 6 comments
Open

Add some fading-out to warning overlay #40

Raruto opened this issue May 16, 2019 · 6 comments

Comments

@Raruto
Copy link

Raruto commented May 16, 2019

As we can see from the demo page, the gestures handling overlay message disappears too much abruptly (without fading-out) from the map.

It would be great to add some kind of transition for the opacity (from 1 to 0), before removing the .leaflet-gesture-handling-scroll-warning class (which should be responsible for the sudden disappearance of the scroll message).

@Raruto Raruto mentioned this issue Jun 20, 2019
@neoman666
Copy link

Is there already a solution here?

@Raruto
Copy link
Author

Raruto commented Oct 12, 2019

I made a fork until the problem is solved

@neoman666
Copy link

Ok, thanks, it works great. Only the multilingualism does not work. My standard language is German, when I switch my website to English, German is still displayed.

@Raruto
Copy link
Author

Raruto commented Oct 15, 2019

This happens because the language is automatically set based on browser locale.

You can manually set it one as below:

var map = L.map("map", {
    center: [-25.2702, 134.2798],
    zoom: 3,
    gestureHandling: true,
    gestureHandlingOptions: {
       locale: "en" // override browser locale
    }
});

@neoman666
Copy link

But there is a difference between the two versions, ie between your version (fork) and the one on this page. The original version recognizes the language correctly. I used Joomla as a base, there I switch between the languages ​​back and forth. Unfortunately this does not work for your version. Why?

@Raruto
Copy link
Author

Raruto commented Oct 17, 2019

Since this is a problem related to another project, I suggest you open there a new issue providing a concrete example and all the necessary information.

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