deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug] getTooltip disappears when autoHighlight: true and interleaved: true in MapboxOverlay (deck.gl)

Open iPOiZN opened this issue 7 months ago • 1 comments

Description

When using MapboxOverlay from the latest deck.gl version, if autoHighlight: true and interleaved: true are enabled, the tooltip (getTooltip) disappears unless the cursor is actively moving over the layer. As soon as the cursor stops moving, the tooltip disappears. When autoHighlight: false, the issue does not occur — the tooltip remains visible as expected.

Actual behavior: The tooltip disappears as soon as the cursor stops moving.

Flavors

  • [ ] Script tag
  • [ ] React
  • [ ] Python/Jupyter notebook
  • [x] MapboxOverlay
  • [ ] GoogleMapsOverlay
  • [ ] CARTO
  • [ ] ArcGIS
  • [x] Vue

Expected Behavior

The tooltip should remain visible while hovering over the object, even if the cursor is not moving.

Steps to Reproduce

Use MapboxOverlay with interleaved: true.

Enable autoHighlight: true.

Provide a getTooltip function.

Hover over a layer without moving the cursor.

Environment

  • Framework version: [email protected]
  • mapbox-gl version: 3.11.0
  • Browser: Chrome 135.0.7049.115 (ARM 64)
  • OS: MacOS Sequoia 15.4.1

Logs

No response

iPOiZN avatar Apr 27 '25 10:04 iPOiZN

yes,I get same problem,try to create a dom tooltip yourself,in deck onhover function to update tooltip

pygo1 avatar Jun 04 '25 10:06 pygo1

FYI @iPOiZN I have a fix here: https://github.com/visgl/deck.gl/pull/9889

Spacerat avatar Dec 02 '25 05:12 Spacerat