OmhMarkerOptions

data class OmhMarkerOptions(var position: OmhCoordinate = OmhCoordinate(), var title: String? = null, var clickable: Boolean = true, var draggable: Boolean = false, var anchor: Pair<Float, Float> = Pair(Constants.ANCHOR_CENTER, Constants.ANCHOR_CENTER), var infoWindowAnchor: Pair<Float, Float> = Pair( Constants.ANCHOR_CENTER, Constants.ANCHOR_TOP ), var alpha: Float = Constants.DEFAULT_ALPHA, var snippet: String? = null, var isVisible: Boolean = Constants.DEFAULT_IS_VISIBLE, var isFlat: Boolean = Constants.DEFAULT_IS_FLAT, var rotation: Float = Constants.DEFAULT_ROTATION, @ColorInt var backgroundColor: Int? = null, var icon: Drawable? = null, var zIndex: Float? = null) : Parcelable

Defines OmhMarkerOptions for a marker. You can customize marker appearance by changing its properties.

Implements Parcelable interface to facilitate the usage.

Constructors

Link copied to clipboard
constructor(position: OmhCoordinate = OmhCoordinate(), title: String? = null, clickable: Boolean = true, draggable: Boolean = false, anchor: Pair<Float, Float> = Pair(Constants.ANCHOR_CENTER, Constants.ANCHOR_CENTER), infoWindowAnchor: Pair<Float, Float> = Pair( Constants.ANCHOR_CENTER, Constants.ANCHOR_TOP ), alpha: Float = Constants.DEFAULT_ALPHA, snippet: String? = null, isVisible: Boolean = Constants.DEFAULT_IS_VISIBLE, isFlat: Boolean = Constants.DEFAULT_IS_FLAT, rotation: Float = Constants.DEFAULT_ROTATION, @ColorInt backgroundColor: Int? = null, icon: Drawable? = null, zIndex: Float? = null)

Properties

Link copied to clipboard

The alpha (transparency) of the marker. Default: 1.0f

Link copied to clipboard

The anchor for the marker image. Default: Pair(0.5f, 0.5f)

Link copied to clipboard

The ARGB color of the marker or resets the color to the provider's default value if null.

Link copied to clipboard

Whether the marker is clickable. Default value: true

Link copied to clipboard

Whether the marker is draggable. Default value: false

Link copied to clipboard

The icon Drawable for the marker. Overrides backgroundColor if not null.

Link copied to clipboard

The anchor for the info window. Default: Pair(0.5f, 0.0f)

Link copied to clipboard

Boolean representing whether the marker is flat (stuck to the map) or is a billboard (rotates and tilts with the camera).

Link copied to clipboard

Boolean indicating whether the marker is visible.

Link copied to clipboard

The location for the marker.

Link copied to clipboard

The rotation of the marker (degrees, clockwise) with respect to the map. Default: 0f

Link copied to clipboard

The text snippet to be shown below marker title.

Link copied to clipboard

The title for the marker.

Link copied to clipboard

The z-index of the marker. Default: null