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

[Bug] Chrome flickering when using Google Maps vector map with custom map style #9261

Open
2 of 7 tasks
fundevstuff opened this issue Nov 21, 2024 · 2 comments
Open
2 of 7 tasks
Labels

Comments

@fundevstuff
Copy link

fundevstuff commented Nov 21, 2024

Description

Hi,
I have a quite big flickering problem in Google Chrome when using DeckGLOverlay/GoogleMapsOverlay (using a Google Maps Vector map with a custom style) and running this example:
https://deck.gl/docs/api-reference/google-maps/google-maps-overlay
When I resize the browser window (or a div containing a map) it is a constant flicker until I stop resizing. This is not a problem in Firefox.

Please see steps to reproduce for more details

Thanks a lot for a great project.

Best regards,

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

I expect no flickering on the Google map in Chrome when resizing the window when running:
https://deck.gl/docs/api-reference/google-maps/google-maps-overlay

Steps to Reproduce

Steps to reproduce:

  1. Create a google map id, and choose "Raster" as the map type.
  2. Create a custom map style (choose different colors) and associate the style with the map (under "Map styles", in the cloud)
  3. Run this example code:
    https://deck.gl/docs/api-reference/google-maps/google-maps-overlay
  4. Resize the browser window (drag the window edge) and observe that there is no flicker.
  5. This works well in Chrome and firefox.
  6. Change map type to "Vector" (and choose Tilt and Rotation).
  7. Wait a minute for the changes to take effect.
  8. Resize the browser window again. Now a very annoying flicker happens in Chrome during the resize. It still works in Firefox however!?

Environment

  • Framework version: "@deck.gl/core": "^9.0.35"
  • Browser: Version 131.0.6778.71 (Official version) (64 bit)
  • OS: Windows 10

Logs

No response

@fundevstuff fundevstuff changed the title [Bug] Chrome flickering when using Google Maps vector map [Bug] Chrome flickering when using Google Maps vector map with custom map style Nov 22, 2024
@telriot
Copy link

telriot commented Dec 2, 2024

Having the same issue, but not on all machines.
The problem arises with Chrome 131.0.6778.85 on Mac 15.1.1.
Deck gl is at version 9.0.35.

@Fabioni
Copy link
Contributor

Fabioni commented Jan 6, 2025

I have the same problem.

It only happens for non-interleaved deckgl layers. The interleaved once act fine. So it is probably because of the resizing of the deckgl canvas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants