MapMarkerCluster.CounterStyle (API Reference)
Package com.here.sdk.mapview
Class MapMarkerCluster.CounterStyle
java.lang.Object
com.here.sdk.mapview.MapMarkerCluster.CounterStyle
- Enclosing class:
- MapMarkerCluster
Styling options for a marker cluster which is represented by the marker count as a text.
-
Field Summary
FieldsModifier and TypeFieldDescriptionString to display if there are more markers clustered thanmaxCountNumber.doubleFont size of counter.intMaximal number of markers represented as exact number.Anchor of counter in regards to marker cluster image.Font color of counter. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
textColor
Font color of counter. Default value is white.
-
fontSize
public double fontSizeFont size of counter. Default value is 20.
-
textAnchor
Anchor of counter in regards to marker cluster image. Default is at the center.
-
maxCountNumber
public int maxCountNumberMaximal 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
String to display if there are more markers clustered than
maxCountNumber. Default value is "+99".
-
-
Constructor Details
-
CounterStyle
public CounterStyle()Creates a new instance.
-