-
Manager API to control View Annotations.
View annotations are
UIView
instances that are drawn on top of theMapView
and bound to an arbitraryGeometry
such asPoint
, or aFeature
rendered on a layer. In case some view annotations intersect on the screen Z-index is based on addition order.View annotations are invariant to map camera transformations however such properties as size, visibility etc could be controlled by the user using update operation.
See moreDeclaration
Swift
public final class ViewAnnotationManager
-
An interface you use to detect when the map view lays out or updates visibility of annotation views.
When visible portion of a map changes, e.g. responding to the user interaction, the map view adjusts the positions and visibility of its annotation views. Implement methods of
ViewAnnotationUpdateObserver
to detect when the map view updates position/size for supplied annotation views. As well as when annotation views get show/hidden when going in/out of visible portion of the map.To register an observer for view annotation updates, call the
addViewAnnotationUpdateObserver(_:)
method.Important
This protocol is deprecated and will be removed in future releases. UseViewAnnotation
instead.Declaration
Swift
public protocol ViewAnnotationUpdateObserver : AnyObject
-
Stores layout and visibility settings for a view annotation.
Important
ViewAnnotationOptions
is deprecated and will be removed in future releases. UseViewAnnotation
instead.Declaration
Swift
public struct ViewAnnotationOptions : Equatable
-
Undocumented
See moreDeclaration
Swift
public struct ViewAnnotationManagerError : Error, Equatable