mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.37k stars 1.33k forks source link

Polygon with overlap inner not displayed correctly #16499

Open pvarry opened 4 years ago

pvarry commented 4 years ago

When display a polygon area with 2 inner polygon overlapping each other, this part is not mark as inner for the big polygon, so it's drawn.

Platform: Android and iOS Mapbox SDK version: 9.2.1 & 4.5.0

Steps to trigger behavior

Expected behavior

A polygon with a colored background but with a hole where inner polygons is present.

Actual behavior

The actual result is, the part specified by 2 inner area, in other word the area witch inner 1 is overlapped by inner 2 is drawn. But this area is specified as inner, so it must not be be drawn