mapbox / mapbox/mapbox-gl-draw

Draw controls under Deck GL GridCellLayer

Open
#1,270 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs information
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

How can we enable draw controls on top of deckgl layers? Draw selection is currently under my GridCellLayer in DeckGL. I'm using mapbox overlay with deckgl. How can I change this ordering?

```
function DeckGLOverlay(props: any) {
const overlay = useControl(() => new MapboxOverlay(props));
overlay.setProps(props);
return null;
}



```

Screenshot 2024-08-05 at 5 34 16 PM

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

Start with the DeckGLOverlay example and its MapboxOverlay props, especially interleaved=true, then trace how draw selection and GridCellLayer are ordered. Done means the draw controls render above the GridCellLayer in the Mapbox integration.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.