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 ARGB color of the marker or resets the color to the provider's default value if null.
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
The location for the marker.