ViewPin
public class ViewPin
This class represents a pinned UIView, that means an UIView at a fixed location on the map.
The pinned view will automatically be repositioned on the screen as the map moves. There is more performance overhead involved in positioning an view as compared to a map marker, so for use cases which only require static images, markers should be used.
-
The UIView that was pinned.
Declaration
Swift
public private(set) var view: UIView { get } -
Current GeoCoordinates on the map.
The altitude component of the coordinates, if set, is interpreted as above sea level. When not set, the coordinates are interpreted as at ground level.
Declaration
Swift
public var geoCoordinates: GeoCoordinates { get set } -
Removes the view from the MapView it was pinned to.
Declaration
Swift
public func unpin()