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
To specify a constraint specific to Polygons, it is useful to
introduce the concept of a linear ring:
[…]
o A linear ring MUST follow the right-hand rule with respect to the
area it bounds, i.e., exterior rings are counterclockwise, and
holes are clockwise.
Map.queryRenderedFeatures returns polygons that don't follow the right-hand rule, which violates the GeoJSON standard:
mapbox-gl-js version: v3.3.0
browser: Brave Browser 123.1.64.122
Steps to Trigger Behavior
map.queryRenderedFeatures
.Link to Demonstration
Tweak this example https://docs.mapbox.com/mapbox-gl-js/example/queryrenderedfeatures/ to also display the geometry:
The following coordinates are where I found the issue:
Then paste the resulting geojson in https://geojsonlint.com/
Expected Behavior
No lint errors, meaning the polygons respect the right-hand rule
Actual Behavior
There's an error, stating that the polygons don't respect the right-hand rule
The text was updated successfully, but these errors were encountered: