You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each feature includes a top-level layer property whose value is an object representing the style layer to which the feature belongs. Layout and paint properties in this object contain values which are fully evaluated for the given zoom level and feature.
The second sentence doesn't reflect the current behavior: currently, the layer objects in the results are just serialized layers, and serialize doesn't produce property values evaluated for the given zoom level or feature. You can confirm this via this example.
I agree with the intent of the documentation -- since you can already obtain the unevaluated property values via runtime styling APIs, it's more useful to get the evaluated properties. We should fix the behavior to match what's documented.
The text was updated successfully, but these errors were encountered:
The documentation for
queryRenderedFeatures
says:The second sentence doesn't reflect the current behavior: currently, the
layer
objects in the results are justserialize
d layers, andserialize
doesn't produce property values evaluated for the given zoom level or feature. You can confirm this via this example.I agree with the intent of the documentation -- since you can already obtain the unevaluated property values via runtime styling APIs, it's more useful to get the evaluated properties. We should fix the behavior to match what's documented.
The text was updated successfully, but these errors were encountered: