mapbox / mapbox/mapbox-gl-draw
Draw controls under Deck GL GridCellLayer
Nobody has claimed this yet.
- 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;
}
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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