Manager API to control View Annotations.
View annotations are
UIViewinstances that are drawn on top of the
MapViewand bound to some
Pointis supported for now). 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.
View annotations are not explicitly bound to any sources howeverSee more
associatedFeatureIdcould be used to bind given view annotation with some
Feature.identifiermeaning visibility of view annotation will be driven by visibility of given feature.
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
ViewAnnotationUpdateObserverto 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 theSee more
public protocol ViewAnnotationUpdateObserver : AnyObject
Stores layout and visibilty settings for aSee more
public struct ViewAnnotationOptions : Hashable
public enum ViewAnnotationManagerError : Error