Skip to content

map.addInteraction not handle while feature id is a real string #13596

@lesmoutonssauvages

Description

@lesmoutonssauvages

mapbox-gl-js version

v3.16.0-beta.2

Browser and version

all

Expected behavior

Features Id with string should be handle by interaction ("click")

Actual behavior

Features Id with strings not handled, with string number works.

Link to the demonstration

https://jsbin.com/vajabic/edit?html,console,output

Steps to trigger the unexpected behavior

click on each elephants, one with "12" id works and log info on console, the other "12a" does not.

Relevant log output

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