-
Hello, I've been working on creating my own theme for mapsforge vtm vector data for a short time. I noticed that polygons are unfortunately labeled multiple times when you increase the zoom level. I have tried this with the example app and the themes integrated there and the problem remains. Is there a workaround for this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Please write the coordinates of your examples. Are you sure the campings are not nodes? For polygon labels you can try VTM "area-size" parameter of caption / text rules. There is also the Parameters class with static flags that affect various things in the library. |
Beta Was this translation helpful? Give feedback.
-
I cannot reproduce what you report with brandenburg.map from Mapsforge server, VTM themes and vtm-playground. You can add or increase the "area-size" parameter if want fewer labels. |
Beta Was this translation helpful? Give feedback.
-
Use the Parameters.POLY_CENTROID flag. As mentioned in the comments, |
Beta Was this translation helpful? Give feedback.
-
It is impossible to examine everyone's code and examples. There are cases with official maps with multiple polygon labels. |
Beta Was this translation helpful? Give feedback.
Use the Parameters.POLY_CENTROID flag.
As mentioned in the comments,
if map files are not created with global or local label-position,
you can force that calculation when reading the map files.