Skip to content

Any reason why nested objects in GeoJSON propereties get stringified in click event? #162

Answered by dabreegster
reinhard-sanz asked this question in Q&A
Discussion options

You must be logged in to vote

It's maplibre in general: https://maplibre.org/maplibre-gl-js/docs/API/classes/Map/#queryrenderedfeatures
It's a limit of the MVT format, I think.

Quite annoying. One workaround is holding onto the original GJ, then using a feature ID from maplibre's queries to look up the full feature.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@reinhard-sanz
Comment options

@dimfeld
Comment options

Answer selected by reinhard-sanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants