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

Update map size when window size changes #130

Open
opatut opened this issue Dec 3, 2021 · 1 comment
Open

Update map size when window size changes #130

opatut opened this issue Dec 3, 2021 · 1 comment
Labels
bug Something isn't working frontend

Comments

@opatut
Copy link
Member

opatut commented Dec 3, 2021

There seems to be a problem with the maps, they are not resized correctly when changing the window size. That makes them look rather odd. Please fix that.

@opatut opatut added bug Something isn't working frontend labels Dec 3, 2021
@yyxcv
Copy link
Contributor

yyxcv commented Jun 18, 2023

There seems to be a bug in 'react-map-gl' v.6 that causes the problem.
The only ways to fix the issue with v.6 (that I have come up with) are kind of 'hacky'.

I tested the map with 'react-map-gl' v.7 and the bug does not seem to present there.
I noticed also that the map does not correctly resize if the mapSettings are toggled.

I'm going to look into it and will come up with a pull request...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

No branches or pull requests

2 participants