mapbox / mapbox/mapbox-gl-draw

[Question] [Help] Interaction API with specific kind of point

Open
#1,494 0 comments 0 reactions 0 assignees View on GitHub
auto-triaged needs information
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

I had in previous versions layers to target specific entities in the mapbox draw.
Unfortunately support dropped for this layers feature in favor of featureset.
I have no idea what to write instead,
Can you help me?
```ts
this.map.addInteraction("vertiport-clicked", {
type: "click",
// @ts-ignore
layers: [
"gl-draw-point-inactive",
"gl-draw-point-active",
"gl-draw-point-inactive.cold",
"gl-draw-point-inactive.hot",
"gl-draw-point-active.cold",
"gl-draw-point-active.hot",
],
```

Contributor guide

Open the contributing guide

Research direction

Start with the Interaction API's featureset replacement for the removed layers option, using the shown TypeScript interaction as the reproduction. Determine how a click can target the specific Mapbox Draw point states listed in the issue, then confirm the replacement works for those point variants.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.