Skip to content

Commit

Permalink
Parameters: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Jun 20, 2024
1 parent 2628219 commit 5cb9e21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vtm/src/org/oscim/utils/Parameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ public enum SymbolScaling {ALL, POI}
/**
* Calculation of centroids for all polygons.
* (may affect performance)
* <p>
* 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;

Expand Down

0 comments on commit 5cb9e21

Please sign in to comment.