Class MapMarkerCluster.CounterStyle
Package com.here.sdk.mapview
Class MapMarkerCluster.CounterStyle
- java.lang.Object
-
- com.here.sdk.mapview.MapMarkerCluster.CounterStyle
-
- Enclosing class:
- MapMarkerCluster
public static final class MapMarkerCluster.CounterStyle extends java.lang.ObjectStyling options for a marker cluster which is represented by the marker count as a text.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringaboveMaxTextString to display if there are more markers clustered thanmaxCountNumber.doublefontSizeFont size of counter.intmaxCountNumberMaximal number of markers represented as exact number.Anchor2DtextAnchorAnchor of counter in regards to marker cluster image.ColortextColorFont color of counter.
-
Constructor Summary
Constructors Constructor Description CounterStyle()Creates a new instance.
-
-
-
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
aboveMaxTextaccordingly.
-
aboveMaxText
@NonNull public java.lang.String aboveMaxText
String to display if there are more markers clustered than
maxCountNumber. Default value is "+99".
-
-