visgl / visgl/deck.gl

GoogleMapsOverlay does not fire onDrag events even though onHover onClick and Highlight work

Open
#8,938 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

Description

Using GoogleMapsOverlay from Deck.gl for Google Map JS API in overlaid mode should enable objects being picked or dragged. However this does not work.

Flavors
  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS
Expected Behavior

After setting pickable=true, dragging the object should fire the respective events.

Steps to Reproduce

https://stackblitz.com/edit/vitejs-vite-rxes87?file=main.js

You can see that highlighting works, but onDrag / onDragStart / onDragEnd does not.

Environment
  • Framework version: 9.0.17
  • Browser: Chrome 125
  • OS: Sonoma 14.5
Logs

none

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior using the linked StackBlitz example, starting with main.js and the GoogleMapsOverlay setup. Trace how pickable objects receive hover and click input versus drag input; done means onDragStart, onDrag, and onDragEnd fire when a pickable object is dragged in Google Maps overlaid mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
data-visualization, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.