addBpkMarker
fun GoogleMap.addBpkMarker(context: Context, position: LatLng, title: String, pointerOnly: Boolean, @DrawableRes icon: Int = 0, tag: Any? = null): Marker?
Adds custom Backpack marker to the map. Methods like GoogleMap.addMarker should not be used as it may lead to undefined behaviour.
Please be aware that this method is heavy as it captures the View to Bitmap and stores it in the memory. Showing too many map markers may lead to frequent GC invocations and memory overflow.
Return
Marker added to the map.
Parameters
context
will be used to construct the badge view
title
will be displayed on the badge
icon
will be displayed on the badge. If set to 0 (by default), no icon will be renderer
pointerOnly
if true, it will not display badge until it's selected
tag
any custom object needs to be associated with the marker