visgl / visgl/deck.gl

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

Open
#9,261 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the GoogleMapsOverlay example linked in the issue and reproduce the resize behavior using a Google Maps vector map with a custom style in Chrome. Compare vector and raster modes and Firefox; done means resizing no longer causes flickering in the reported Chrome setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
data-visualization, frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.