-
-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unstable PolygonLayer
& PolylineLayer
#1921
Comments
Hi! I know that this is not the solution, but if I comment out line 74 in the \lib\src\layer\shared\layer_projection_simplification\state.dart: Everything works. |
Hi all, |
PolygonLayer
& PolylineLayer
What is the bug?
The users clicks min. 4 points on the map to draw an area.
The polygon will not be drawn at all zoom levels and cannot be deleted.
(This worked fine on flutter map version 6.0.1, but no more on 7.0.0/7.0.1 .
How can we reproduce it?
I have uploaded the code for reproduction Link to github.
I recorded the behavior in this video:
bug.mp4
Manual reproduction:
Do you have a potential solution?
I tried to debug flutter map. It looks like that in the state.dart , the _cachedSimplifiedElements don´t recognized that a new polygon is created in the zoom level.
And general the _cachedProjectedElements will not getting updated if the user cleared the polygon.
Platforms
e.g. Android emulator Pixel 7
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
The text was updated successfully, but these errors were encountered: