Class MapMarkerCluster.CounterStyle

java.lang.Object
com.here.sdk.mapview.MapMarkerCluster.CounterStyle
Enclosing class:
MapMarkerCluster

public static final class MapMarkerCluster.CounterStyle extends Object

Styling options for a marker cluster which is represented by the marker count as a text.

  • Field Details

    • textColor

      @NonNull public Color textColor

      Font color of counter. Default value is white.

    • fontSize

      public double fontSize

      Font size of counter. Default value is 20.

    • textAnchor

      @NonNull public Anchor2D textAnchor

      Anchor of counter in regards to marker cluster image. Default is at the center.

    • maxCountNumber

      public int maxCountNumber

      Maximal number of markers represented as exact number. Values smaller than 2 will be clamped to 2. Default value is 99. When this value is changed, it is recommended to adapt aboveMaxText accordingly.

    • aboveMaxText

      @NonNull public String aboveMaxText

      String to display if there are more markers clustered than maxCountNumber. Default value is "+99".

  • Constructor Details

    • CounterStyle

      public CounterStyle()

      Creates a new instance.