-
-
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
How to always center the marker on the polygon, regardless of zoom level #1160
Comments
Hi there, |
Hello, thanks for the answer. Good idea that you implemented. Now I´m trying to adapt it to my project through MapPlugin. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Hi, I'm using flutter_maps to display the polygons of a building plan.
Each polygon is a department. I have added a layer of polygons and 1 layer of Markers with the names of the polygons.
The problem is that I need the department names to always be centered. In the initial zoom each name looks good, like in this image:
Since I have calculated the center of each polygon and that is the position that I have assigned to the corresponding Marker. But when zooming in/out, the name scrolls:
Is there any way to recalculate the position of the marker so that it is always in the center?
Thanks in advance for any assistance!
The text was updated successfully, but these errors were encountered: