public class MarkerBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_ICON_SCALE |
| Constructor and Description |
|---|
MarkerBuilder(LatLng position) |
| Modifier and Type | Method and Description |
|---|---|
Marker |
build()
Create an instance of a marker.
|
MarkerBuilder |
decal(boolean decal)
Whether the marker icon is to be attached to the map
|
MarkerBuilder |
icon(Icon icon)
Icon with name.
|
MarkerBuilder |
iconAnchor(MarkerAnchor iconAnchor)
Icon anchor points to the point on the icon which will be attached to the map.
|
MarkerBuilder |
markerBalloon(BaseMarkerBalloon markerBalloon)
Balloon that is to be shown when user clicks on the marker.
|
MarkerBuilder |
shouldCluster(boolean shouldCluster)
When true, marker will be clustered once this option is enabled.
|
MarkerBuilder |
tag(java.io.Serializable tag)
TAG is known android pattern to keep additional information.
|
public static final float DEFAULT_ICON_SCALE
public MarkerBuilder(@NonNull
LatLng position)
@NonNull public MarkerBuilder tag(java.io.Serializable tag)
tag - - serializable object@NonNull public MarkerBuilder decal(boolean decal)
decal - marker icon is to be attached to the map@NonNull public MarkerBuilder icon(Icon icon)
icon - @NonNull public MarkerBuilder iconAnchor(MarkerAnchor iconAnchor)
iconAnchor - @NonNull public MarkerBuilder markerBalloon(BaseMarkerBalloon markerBalloon)
@NonNull public MarkerBuilder shouldCluster(boolean shouldCluster)
@NonNull public Marker build()