Marker

constructor(position: LatLng, title: String? = null, snippet: String? = null, icon: BitmapDescriptor? = null, anchor: Pair<Float, Float> = Pair(0.5f, 1.0f), infoWindowAnchor: Pair<Float, Float> = Pair(0.5f, 0.0f), rotation: Float = 0.0f, isFlat: Boolean = false, visible: Boolean = true, alpha: Float = 1.0f, draggable: Boolean = false, zIndex: Float = 0.0f, tag: Any? = null)(source)

Parameters

position

The geographic location of the marker

title

Optional title text displayed when marker is clicked

snippet

Optional snippet text displayed below the title

icon

Custom icon descriptor. If null, a default red marker icon will be used

anchor

Anchor point for the marker icon. Default (0.5f, 1.0f) means the marker is centered horizontally and anchored at the bottom

infoWindowAnchor

The point of the icon the info window points at, as fractions of its width and height. Default (0.5f, 0.0f) is the top center

rotation

Clockwise rotation of the icon around the anchor, in degrees: relative to the screen, or to north for a flat icon. Default is 0

isFlat

Whether the icon lies flat on the map and turns with it when the camera has a bearing, instead of facing the screen. Default is false

visible

Whether the marker is visible. Default is true

alpha

Opacity of the marker from 0.0 (transparent) to 1.0 (opaque). Default is 1.0

draggable

Whether the marker can be dragged. Default is false

zIndex

Draw order. Markers with higher zIndex are drawn on top. Default is 0.0

tag

Optional user data associated with the marker