Class MapMarkerCluster.CounterStyle

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

    public static final class MapMarkerCluster.CounterStyle
    extends java.lang.Object

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

    • Constructor Summary

      Constructors 
      Constructor Description
      CounterStyle()
      Creates a new instance.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 java.lang.String aboveMaxText

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

    • Constructor Detail

      • CounterStyle

        public CounterStyle()

        Creates a new instance.