public static class ClusteredMarker.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(android.content.Context context,
HighlightedMarkers highlightedMarker,
java.util.ArrayList<Marker> markersToCluster)
A ClusteredMarker Builder needs a list of markers to cluster
|
Modifier and Type | Method and Description |
---|---|
ClusteredMarker |
build() |
ClusteredMarker.Builder |
setClusteredMarkers(java.util.ArrayList<Marker> markersToCluster)
Sets the markers to cluster
|
ClusteredMarker.Builder |
setPosition(float x,
float y)
Sets the position of the clustered marker
|
ClusteredMarker.Builder |
setTintColor(int tintColor)
Sets the background color of the clustered marker
|
public Builder(@NonNull android.content.Context context, HighlightedMarkers highlightedMarker, java.util.ArrayList<Marker> markersToCluster)
A ClusteredMarker Builder needs a list of markers to cluster
context
- Context to be used to get assets to be drawnhighlightedMarker
- The highlighted marker that contains the markers to clustermarkersToCluster
- The list of markers to be clusteredpublic ClusteredMarker.Builder setClusteredMarkers(java.util.ArrayList<Marker> markersToCluster)
Sets the markers to cluster
public ClusteredMarker.Builder setPosition(float x, float y)
Sets the position of the clustered marker
public ClusteredMarker.Builder setTintColor(int tintColor)
Sets the background color of the clustered marker
public ClusteredMarker build()