Closed Elleo closed 4 weeks ago
It's probably misinterpreting the output of dart_earcut
, or maybe the code in dart_earcut
is wrong. But more likely is the first one, as I had a hard time understanding the output myself (despite it being me that ported that library!).
It probably starts at this line, which then throws the whole triangulation off:
I knew there would be issues when I wrote it, but none of my test cases included multiple holes!
What is the bug?
If a polygon contains multiple holes and the useAltRendering property is set on the polygon layer, then the holes are cut out incorrectly (with vertices from different holes seemingly connecting to each other)
Expected output:![Screenshot 2024-05-30 123727](https://github.com/fleaflet/flutter_map/assets/59350/81470004-bd3e-470d-9b2f-e5dfcf685c36)
Actual output:![Screenshot 2024-05-30 123709](https://github.com/fleaflet/flutter_map/assets/59350/f157b7af-9ece-41c5-a30b-d42c2525dea7)
How can we reproduce it?
The following code can be used to reproduce this issue:
Do you have a potential solution?
No response
Platforms
Windows 11, iOS 17
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console