Skip to content

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

@AceCodePt

Description

@AceCodePt

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?

    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",
      ],

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions