Skip to content

[Bug] maplibre / mapbox Popup shows below the deck.gl features in non-interleaved MapboxOverlay #8530

@JayFoxRox

Description

@JayFoxRox

Description

mapbox and maplibre render popups below controls so using IControl for deck.gl isn't a good idea.
This makes sense, because popups are HTML elements that are considered part of the map, whereas controls sit on top of the map.

Flavors

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

Expected Behavior

deck.gl layers should be below Popup created on the basemap

Steps to Reproduce

Controlled by enableBug4 in https://github.com/JayFoxRox/deck.gl-bugs/blob/master/src/DeckGlBugs.tsx

My current workaround is to get access to the deck.gl canvas element and moving it to a different position in the DOM.
I'd recommend against fixing this by z-index because it can quickly lead to bad interaction with other libraries or users code which might also use z-index.

Environment

  • Framework version: deck.gl@9.0.0-beta.4
  • Browser: All
  • OS: All

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions