V7 interactable Popups #1742
-
I've been looking to upgrade to the V7 version, since I want the cooperative gestures that it introduces, but unfortunately I'm using Popups with DeckGL. That was to be expected, as it was mentioned in the RFC that they would no longer work, but also that the relevant code might be moved to a different project. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Even when the old Popup component is moved to a different project, you still won't be able to use it with cooperative gestures, because DeckGL is the one handling user input, not the react-map-gl Map. To use mapbox's event handlers you can look into using deck.gl as a custom layer, or inject the deck.gl canvas into the map container with useControl. |
Beta Was this translation helpful? Give feedback.
Even when the old Popup component is moved to a different project, you still won't be able to use it with cooperative gestures, because DeckGL is the one handling user input, not the react-map-gl Map.
To use mapbox's event handlers you can look into using deck.gl as a custom layer, or inject the deck.gl canvas into the map container with useControl.