Any reason why nested objects in GeoJSON propereties
get stringified in click event?
#162
-
Hello! Is there a specific reason for this, or is this jsut a maplibre thing in general? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's maplibre in general: https://maplibre.org/maplibre-gl-js/docs/API/classes/Map/#queryrenderedfeatures 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. |
Beta Was this translation helpful? Give feedback.
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.