MapPin

open class MapPin

Class for creating a pin on the map for a specific entity and a specific map position

Constructors

Link copied to clipboard
constructor(@NonNull mapApi: MapApi, @NonNull mapFragment: MainMapFragment)
constructor(@DrawableRes drawableResource: Int, pixelSize: Float, mapApi: MapstedMapApi)

Functions

Link copied to clipboard
open fun hide()
Link copied to clipboard
open fun removePin(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun setPinToEntity(@NonNull entityPos: MapPos, @NonNull entity: Entity)
Call this function when a search entity is selected on the map.
Link copied to clipboard
open fun setPinToMapPos(mercatorZone: MercatorZone): Boolean
Call this function when an empty spot is selected on map.
Link copied to clipboard
open fun setPinToTagPosWithBalloonPopup(mercatorZone: MercatorZone, tagId: Int, tagName: String): Boolean
Call this function when required to set map pin for tag.
Link copied to clipboard
open fun show()