PMMapMarker

data class PMMapMarker(val markerId: String = UUID.randomUUID().toString(), val bitmap: Bitmap, val position: PMMapPosition, val markerIconAnchorX: Float = 0.5f, val markerIconAnchorY: Float = 0.5f, val minVisibleZoomLevel: Float = 0.0f, val maxVisibleZoomLevel: Float = 22.0f)

Representation of marker displayed on map

Constructors

Link copied to clipboard
fun PMMapMarker(markerId: String = UUID.randomUUID().toString(), bitmap: Bitmap, position: PMMapPosition, markerIconAnchorX: Float = 0.5f, markerIconAnchorY: Float = 0.5f, minVisibleZoomLevel: Float = 0.0f, maxVisibleZoomLevel: Float = 22.0f)

Properties

Link copied to clipboard
val bitmap: Bitmap

Map marker's visual representation. This bitmap is drawn on map.

Link copied to clipboard

Marker anchor position in horizontal axis. 0 means left of the bitmap is anchored, while 1 represents right of the bitmap. 0.5 is used as a default.

Link copied to clipboard

Marker anchor position in vertical axis. 0 means top of the bitmap is anchored, while 1 represents bottom of the bitmap. 0.5 is used as a default.

Link copied to clipboard

Unique identifier of marker. This value is autogenerated by default. If you provide a markerId, make sure it is unique.

Link copied to clipboard

Marker is only visible if zoom level is lower than this value. This value should be more than @property minVisibleZoomLevel - Only values in range <0, 22> are valid, where 0 is the most zoomed out view, 22 is the most zoomed in view. - Default value is 22, which means there is no upper zoom level bound

Link copied to clipboard

Marker is only visible if zoom level is higher than this value. This value should be less than @property maxVisibleZoomLevel - Only values in range <0, 22> are valid, where 0 is the most zoomed out view, 22 is the most zoomed in view - Default value is 0, which means there is no lower zoom level bound

Link copied to clipboard

Map marker is placed on these geographic coordinates.