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 button icons and exit-fullscreen button not working #7

Open
werenike opened this issue Oct 19, 2022 · 2 comments
Open

No button icons and exit-fullscreen button not working #7

werenike opened this issue Oct 19, 2022 · 2 comments

Comments

@werenike
Copy link

I'm having multiple issues with the plugin, which could be related. I installed from GitHub directly ("leaflet-fullscreen": "git://github.com/runette/Leaflet.fullscreen.git" in package.json). This is what I see when displaying a map:

image

The icon in the fullscreen button is missing. When I click the button, the map is displayed in fullscreen as expected. There is still no icon in the button.

When I click the button again in fullscreen mode, nothing happens (it should exit fullscreen, I would expect).

There are no messages in the console.

Am I doing something wrong? Is the plugin broken? Thanks!

Maybe related to Leaflet#121

@werenike
Copy link
Author

I solved part of it - apparently I had to explicitly import the CSS file. The exit-fullscreen issue seems to be caused by the plugin not realizing that it is in fullscreen, as the button icon does not change when going fullscreen. When I use pseudo-fullscreen instead, it does work. However that is suboptimal, and the escape button does not seem to work in that mode.

@KristjanESPERANTO
Copy link

Can you show your problem at codepen or something similar?

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