sdk-maps / com.tomtom.online.sdk.map / MarkerBuilder

MarkerBuilder

open class MarkerBuilder

Builder class used to construct marker object that can be added to the map.

Constructors

<init>

MarkerBuilder(position: LatLng)

Constructor of marker builder. Returns instance of marker builder. After setting other properties call MarkerBuilder#build() to create marker.

Functions

build

open fun build(): Marker

Create an instance of a marker.

decal

open fun decal(decal: Boolean): MarkerBuilder

Whether the marker icon is to be attached to the map

draggable

open fun draggable(draggable: Boolean): MarkerBuilder

When true, marker will be draggable.

icon

open fun icon(icon: Icon!): MarkerBuilder

Icon with name.

iconAnchor

open fun iconAnchor(iconAnchor: MarkerAnchor!): MarkerBuilder

Icon anchor points to the point on the icon which will be attached to the map.

markerBalloon

open fun markerBalloon(markerBalloon: BaseMarkerBalloon!): MarkerBuilder

Balloon that is to be shown when user clicks on the marker.

shouldCluster

open fun shouldCluster(shouldCluster: Boolean): MarkerBuilder

When true, marker will be clustered once this option is enabled. Default value is false.

tag

open fun tag(tag: Serializable!): MarkerBuilder

TAG is known android pattern to keep additional information.

toString

open fun toString(): String