Skip to content

[Bug] Layers flickering when resizing window/canvas #9918

@erlend-skarpnes

Description

@erlend-skarpnes

Description

When the browser window/canvas is resized, the layers in the map flicker as they are redrawn. Tested in get-started/react/basic and get-started/pure-js/basic. Does not happen on versions < 9.2.0.

While the use-case of slowly resizing the browser window is not the most needed feature, it also happens during resizing of the canvas (which our application does), and when that resizing happens as part of an animation, the flickering is quite annoying.

Flavors

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

Expected Behavior

Layers do not flicker when resizing the canvas, for example by keeping the old layers on screen until the new layers are drawn.

Steps to Reproduce

On any example running deckgl > 9.2, resize the browser window, and see that all the layers flicker. Extra annoying on maps without maptiles (the basic examples), as the entire screen flicker.

Environment

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions