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 |
id(long id)
Id of a marker, should be unique.
|
MarkerBuilder |
markerBalloon(MarkerBalloon markerBalloon)
Balloon that is to be shown when user clicks on the marker.
|
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)
public MarkerBuilder tag(java.io.Serializable tag)
tag - - serializable objectpublic MarkerBuilder decal(boolean decal)
decal - marker icon is to be attached to the mappublic MarkerBuilder icon(Icon icon)
icon - public MarkerBuilder iconAnchor(MarkerAnchor iconAnchor)
iconAnchor - public MarkerBuilder id(long id)
public MarkerBuilder markerBalloon(MarkerBalloon markerBalloon)
public Marker build()