keplergl / keplergl/kepler.gl

[Bug] deckgl overlay is blocking native mapbox events

Open
#2,656 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
12k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
66

Description

**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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in a kepler.gl v2 or v3 app using the getMapboxRef callback, then subscribe to native map events such as mousemove and click. Trace how the deck.gl overlay handles those interactions and verify that the native callbacks fire after the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.