Class Parameters

java.lang.Object
org.oscim.utils.Parameters

public final class Parameters extends Object
  • Field Details

    • ANIMATOR2

      public static boolean ANIMATOR2
      If true the Animator2 will be used instead of default Animator.
    • CUSTOM_COORD_SCALE

      public static boolean CUSTOM_COORD_SCALE
      Allow custom scale factor for short vertices instead of the calculated one.
    • CUSTOM_TILE_SIZE

      public static boolean CUSTOM_TILE_SIZE
      Allow custom tile size instead of the calculated one.
    • DISTANT_LABELS

      public static boolean DISTANT_LABELS
      Rendering of distant labels.
    • MAP_EVENT_LAYER2

      public static boolean MAP_EVENT_LAYER2
      If true the MapEventLayer2 will be used instead of default MapEventLayer.
    • MARKER_SORT

      public static boolean MARKER_SORT
      If true the markers are sorted in y-axis.
    • MAXIMUM_BUFFER_SIZE

      public static int MAXIMUM_BUFFER_SIZE
      Maximum buffer size for map files.
    • POLY_CENTROID

      public static boolean POLY_CENTROID
      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.

    • POLY_LABEL

      public static boolean POLY_LABEL
      Optimal placement of labels or symbols on polygons.
    • POLY_SYMBOL

      public static boolean POLY_SYMBOL
      Placement of symbols on polygons.
    • POT_TEXTURES

      public static boolean POT_TEXTURES
      POT textures in themes.
    • SIMPLIFICATION_EXCEPTIONS

      public static final Set<Tag> SIMPLIFICATION_EXCEPTIONS
      Simplification exceptions.
    • SIMPLIFICATION_TOLERANCE

      public static int SIMPLIFICATION_TOLERANCE
      Reduce points on-the-fly while reading from vector maps. e.g. 0 (no simplification), 2, 4, ...
    • SYMBOL_SCALING

      public static Parameters.SymbolScaling SYMBOL_SCALING
      Symbol scaling mode.
    • TEXTURE_ATLAS

      public static boolean TEXTURE_ATLAS
      Texture atlas in themes.
    • THREADED_INIT

      public static boolean THREADED_INIT
      Threaded system initialization.