[BUG] Holes in Polygon
s do not always appear
#1924
Labels
bug
This issue reports broken functionality or another error
P: 1 (important)
S: core
Scoped to the core flutter_map functionality
What is the bug?
The points of holes in
Polygon
s must be specified in a winding direction opposite to the winding direction used to specify the normal points - otherwise, a hole is not cut.The bug was introduced in #1901.
How can we reproduce it?
Reverse the order of the inner hole points in the example application.
Do you have a potential solution?
Using proper
Path.combine
techniques in the painter appears to fix the issue:However, this is not supported on the Web HTML backend: flutter/flutter#44572.
Instead, the following line works, but was inadvertantely removed and the introduced bug was not found in testing:
Platforms
All
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
The text was updated successfully, but these errors were encountered: