Remove ["properties"] expression #6291
Labels
api 📝
breaking change ⚠️
Requires a backwards-incompatible change to the API
cross-platform 📺
Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)
The existence of the
["properties"]
expression means that the Feature interface we use must provide access to a full map of a feature's properties, rather than just agetPropertyValue(key)
. This could be a deceptively costly operation. Removing this expression would let us to narrow the feature interface and avoid an unnecessary trap for expression authors. Are there any use cases that can only be served by a["properties"]
expression (instead of just["get", key]
and["has", key]
)?The text was updated successfully, but these errors were encountered: