deck.gl
deck.gl copied to clipboard
[Bug] getTooltip disappears when autoHighlight: true and interleaved: true in MapboxOverlay (deck.gl)
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
yes,I get same problem,try to create a dom tooltip yourself,in deck onhover function to update tooltip
FYI @iPOiZN I have a fix here: https://github.com/visgl/deck.gl/pull/9889