MMKOverlay

@interface MMKOverlay : NSObject

Allows to render overlay on the screen.

Summary

Instance methods

- (void)setImageWithImage:(nonnull UIImage *)image
                     rect:(nonnull MMKScreenRect *)rect;

Sets image as content of overlay, resets view

- (void)setViewWithView:(nonnull MRTViewProvider *)view
                   rect:(nonnull MMKScreenRect *)rect;

Sets view as content of overlay, resets image

- (void)remove;
Removes the overlay from the map

Properties

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

setImageWithImage:rect:

- (void)setImageWithImage:(nonnull UIImage *)image
                     rect:(nonnull MMKScreenRect *)rect;

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


setViewWithView:rect:

- (void)setViewWithView:(nonnull MRTViewProvider *)view
                   rect:(nonnull MMKScreenRect *)rect;

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


remove

- (void)remove;

Removes the overlay from the map.


Properties

valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

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.