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

Document/Clarify feature.id in return value of queryRenderedFeatures for vector sources. #3477

Closed
mb12 opened this issue Oct 27, 2016 · 2 comments

Comments

@mb12
Copy link

mb12 commented Oct 27, 2016

mapbox-gl-js version:Master

Steps to Trigger Behavior

Can you please clarify/document if feature.id returned by queryRenderedFeatures is the following (or not) and if the client applications can use it this way?

feature.id is the index in the corresponding source layer in vector tile.

Expected Behavior

Actual Behavior

@jfirebaugh
Copy link
Contributor

feature.id is the index in the corresponding source layer in vector tile.

No, it's the id property of the feature, as defined in the vector tile or GeoJSON specifications.

See #2716 for current caveat.

@mb12
Copy link
Author

mb12 commented Oct 27, 2016

Thanks for the clarification.

@mb12 mb12 closed this as completed Oct 27, 2016
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