From 5cb9e219e0bc3305ff316e37295ea42e0d122f37 Mon Sep 17 00:00:00 2001 From: Emux Date: Thu, 20 Jun 2024 14:07:30 +0300 Subject: [PATCH] Parameters: update docs --- vtm/src/org/oscim/utils/Parameters.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vtm/src/org/oscim/utils/Parameters.java b/vtm/src/org/oscim/utils/Parameters.java index 1216af532..68e7e6b61 100644 --- a/vtm/src/org/oscim/utils/Parameters.java +++ b/vtm/src/org/oscim/utils/Parameters.java @@ -61,6 +61,14 @@ public enum SymbolScaling {ALL, POI} /** * Calculation of centroids for all polygons. * (may affect performance) + *

+ * When a way will be rendered then typically a label / symbol will be applied + * by the render theme. If the way does not come with a defined labelPosition + * we should calculate a position, that is based on all points of the given way. + * This "auto" position calculation is also done in the LabelTileLoaderHook class + * but then the points of the way have been already reduced cause of the clipping + * that is happening. So the suggestion here is to calculate the centroid of the way + * and use that as centroidPosition of the element. */ public static boolean POLY_CENTROID = false;