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

GeoJSON features identifier and structured properties are losts #7464

Closed
noirbizarre opened this issue Oct 22, 2018 · 1 comment
Closed

GeoJSON features identifier and structured properties are losts #7464

noirbizarre opened this issue Oct 22, 2018 · 1 comment

Comments

@noirbizarre
Copy link

noirbizarre commented Oct 22, 2018

mapbox-gl-js version: 0.50.0

browser: Any

Steps to Trigger Behavior

  1. Load any GeoJSON with string id on features and Array or Object as properties
  2. Catch any mouse event with a features property or use any query*Features helper
  3. Look at the missing id and the stringified properties on features

Link to Demonstration

https://jsfiddle.net/dcwp7xu4/1/

Expected Behavior

The feature string id is present on the feature object and properties are restitued as provided (same type, same content) by the source GeoJSON (and as specified in the GeoJSON specifications)

Actual Behavior

  • String identifier (id) is missing on the features
  • Arrays and objects are stringified

Related issues

It seems to be a recurring issue on different levels:

Most of them didn't had advancement for months or years.
There is even a merged pull request hardening this behavior #7106 (String identifier is a really common use case so why force number ID instead of ensuring string are properly handled)

@ChrisLoer
Copy link
Contributor

Hi @noirbizarre, thanks for the report. This is definitely an issue we want to work on, but I don't understand if there's something new you're reporting here? This looks like a duplicate of #2434 and #2716. Feel free to re-open if I've missed something.

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