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

White flickering of the map when resizing the window #4158

Open
Kurioni opened this issue May 23, 2024 · 1 comment
Open

White flickering of the map when resizing the window #4158

Kurioni opened this issue May 23, 2024 · 1 comment
Labels
bug Something isn't working PR is more than welcomed Extra attention is needed

Comments

@Kurioni
Copy link

Kurioni commented May 23, 2024

Hi all!
Recently I encountered a problem when using a library in a project. When I changed the size of the window (respectively, if the size of the <canvas> changed), I noticed that the map began to flicker white. I started researching this problem, I noticed that this problem has existed for a long time, but it turns out it still exists. I opened the examples on your site and noticed that this problem was also reproduced there.

screencast-maplibre.org-2024.05.webm

maplibre-gl-js version: 4.3.2

browser: Chrome 124.0.6367.210

Steps to Trigger Behavior

  1. Open any example on the site, for example: https://maplibre.org/maplibre-gl-js/docs/examples/fullscreen/
  2. Slowly resize window

Link to Demonstration

Expected Behavior

When resizing the window, the map should not flicker.

Actual Behavior

@Kurioni Kurioni changed the title White flickering of the map when resizing the window White flickering of the map when resizing the window [bug] May 23, 2024
@Kurioni Kurioni changed the title White flickering of the map when resizing the window [bug] White flickering of the map when resizing the window May 23, 2024
@HarelM
Copy link
Member

HarelM commented May 23, 2024

Yup, this has been a pain point from the dawn of history.
In most cases, window resizes are sparse, so the flickering is minimal.
Feel free to dive into it!

@HarelM HarelM added bug Something isn't working PR is more than welcomed Extra attention is needed labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR is more than welcomed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants