-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Preserve id
property on internal GeoJSON objects
#3210
Comments
I went to implement this assuming it would be quite trivial (and it was!)... but then I discovered that the protobuf type set for |
It appears that the vector tile spec also has no preference of To get around this, I've whipped up PR #3211 which uses the index of the feature in the GeoJSON |
Hi Mike, thanks for the bug report and PR!
I believe integer Preservation of non-integer |
Awesome! Thanks for linking #2716 - hadn't seen that one, and I definitely like the idea of its geobuf solution! |
@jfirebaugh - also, just to be clear, this is easily fixed by adding Alternatively, you could just add a check for type, and only set it if it's a number until #2716 lands. |
When a call to
queryRenderedFeatures
returns features from a GeoJSON source, theproperties
field of matching features is provided in the response, but theirid
field is not. Since this is the recommend place to store such an identifier (per the GeoJSON spec) it would be great if this were also returned in the results!The text was updated successfully, but these errors were encountered: