Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] deckgl overlay is blocking native mapbox events #2656

Open
ph-kamil-galladzhov opened this issue Sep 13, 2024 · 1 comment
Open

[Bug] deckgl overlay is blocking native mapbox events #2656

ph-kamil-galladzhov opened this issue Sep 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ph-kamil-galladzhov
Copy link

Describe the bug
Since the deck.gl overlay section is on top of everything, it prevents interactions from reaching mapbox instance and thus, prevents native map events from firing. Due to that subscribing to mentioned events (mousemove, click and etc) has no effect. Probably would be better to propagate all interactions to the underlying map instance allowing to create custom subscriptions if needed

To Reproduce
Steps to reproduce the behavior:

  1. create an app using kepler map
  2. inside a getMapboxRef callback get native map and subscribe on some event
  3. perform an action that would normally trigger an event
  4. callback is not executed

Expected behavior

  1. create an app using kepler map
  2. inside a getMapboxRef callback get native map and subscribe on some event
  3. perform an action that would normally trigger an event
  4. callback is executed

Screenshots
Not applicable

Additional context
Applicable to kepler.gl v2 & v3

@ph-kamil-galladzhov ph-kamil-galladzhov added the bug Something isn't working label Sep 13, 2024
@ph-kamil-galladzhov
Copy link
Author

Ah, alright, if I'm not missing anything, it is the intended behaviour, since map-container uses the reverse controlled integration with deck.gl which's designed to block any interactions with the underlying map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant