MMKOverlay

class MMKOverlay : NSObject

Allows to render overlay on the screen.

Summary

Instance methods

func setImageWith(_ image: UIImage, rect: MMKScreenRect)
Sets image as content of overlay, resets view

func setViewWithView(_ view: MRTViewProvider, rect: MMKScreenRect)
Sets view as content of overlay, resets image

func remove()
Removes the overlay from the map

Properties

var isValid: Bool { get }
Tells if this object is valid or no

Instance methods

setImageWith(_:rect:)

func setImageWith(_ image: UIImage, rect: MMKScreenRect)

Sets image as content of overlay, resets view. Window origin (0, 0) - top left corner.


setViewWithView(_:rect:)

func setViewWithView(_ view: MRTViewProvider, rect: MMKScreenRect)

Sets view as content of overlay, resets image. Window origin (0, 0) - top left corner.


remove()

func remove()

Removes the overlay from the map.


Properties

isValid

var isValid: Bool { get }

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.