ImageOverlay
public class ImageOverlay : Element
                A ImageOverlay will overlay a UIImage on top of a Map. An Overlay
is always on top of other elements, it will always be rotated in such a way
that it is facing the MapView camera. The Overlay scales keeping the size
consistent regardless of how far away the MapView Camera is.
Note: an ImageOverlay will respect the alpha channel of the UIImage,
so it can be used to do more sophisticated graphics on some areas.
The ImageOverlay always tries to be a 1:1 pixel scale with the device’s
screen. Meaning a high resolution image will end up much larger then an
image that is a low resolution. Care should be taken in selecting the
correctly scaled images.
- 
                  
                  
The position vector of the Overlay
Declaration
Swift
public var vector: Vector3 { get } - 
                  
                  
Which Map this Overlay belongs to, this will only exist if the ImageOverlay’s position was set using a
CoordinateDeclaration
Swift
public var map: Map? { get } - 
                  
                  
Only exists if the Overlay position was set with a
CoordinateDeclaration
Swift
public var coordinate: Coordinate? { get } - 
                  
                  
Create a new ImageOverlay
Note: If you are using the minimumTouchSize the box will always pad in all directions around the rendered element.
Declaration
Swift
public init<PositionType: Position>(position: PositionType, image: UIImage, size: CGSize? = nil, anchorPoint: AnchorPoint = .center, minimumTouchSize: CGSize? = nil)Parameters
positionThe location in a Map or Venue where this overlay is. This may be a
Vector3or aCoordinateimageAn image you wish to display on top of the map.
sizeThe size of the image in unscaled pixels. If a scaling factor is applied, it is applied to this size automatically. If not size is provided, the size will always default to the size of the image provided. The size will always respect the
scaleparameter of the image in this case.anchorPointWhere in the image’s 2D position space the
positionpassed above will be associated with. The images is always projected onto the screen such that a ray passing from the camera would pass through the anchorPoint & the position.minimumTouchSizecreates a larger invisible anchor that is only used for determine if a user has touched the overlay. The touch target will always be the size of the minimumTouchSize or the image size. Which ever is greater in both axis. The unit is in content scaled pixels. Defaults to (0, 0)
 - 
                  
                  
Set one or more of the
ImageOverlayparameter’s The parameter’s will be set in a single animationIntervalDeclaration
Swift
public func set(position: Vector3, over animationInterval: TimeInterval = 0)Parameters
positionThe desired position of the
ImageOverlayin map space This will exist in every map. Use aCoordinatefor the position to make this show up on only one specific map.overThe time interval used to animate between the current look of the
ImageOverlayto the one set here - 
                  
                  
Set one or more of the
ImageOverlayparameter’s The parameter’s will be set in a single animationIntervalDeclaration
Swift
public func set(position: Coordinate, over animationInterval: TimeInterval = 0)Parameters
positionThe desired position of the
ImageOverlayThis makes it appear in this spot only on the map associated with the Coordinate.overThe time interval used to animate between the current position of the
ImageOverlayto the one set here 
View on GitHub
        ImageOverlay Class Reference