clarify geometry-type
expression behavior for vector tile sources
#7699
Labels
api 📝
cross-platform 📺
Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)
docs 📜
style-spec
Problem
The documentation for
geometry-type
in the spec (mapbox-gl-js/src/style-spec/reference/v8.json
Line 2738 in 64ebdda
Based on a quick experiment, it doesn't appear like the
geometry-type
expression ever returns a multi* feature when applied to a vector tile source.Suggestion
There's likely more nuance going on here than I'm aware of – in which case, the appropriate explanation in the appropriate place would solve this issue better than anything I can come up with. Here are some suggestions based on what I know:
geometry-type
to return true for multi-features in both vector tile and GeoJSON source types.The text was updated successfully, but these errors were encountered: