Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature Id Alphanumeric #9918

Closed
hmendezm opened this issue Aug 7, 2020 · 1 comment
Closed

feature Id Alphanumeric #9918

hmendezm opened this issue Aug 7, 2020 · 1 comment

Comments

@hmendezm
Copy link

hmendezm commented Aug 7, 2020

mapbox-gl-js version: 1.10.0

Question

I have feature Ids that are alphanumeric and other numeric. The numeric Ids are kept as is but the alphanumeric ids are set undefined. Is it a way to set the addSource method to accept Alphanumeric values in feature.id?

I try promoted by it is return always undefined for all features.

Note: this happens in mousemove events and querySourceFeatures

best
Hmendez

@mourner
Copy link
Member

mourner commented Aug 17, 2020

Currently there's no way to support this because the Vector Tile specification only allows integers as feature id — you would have to store alphanumeric id as a feature property for it to work with promoteId. Closing as a duplicate of #2716.

@mourner mourner closed this as completed Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants