AnnotationOrchestrator
AnnotationOrchestrator
provides a way to create annotation managers of different types.
-
Dictionary of annotation managers keyed by their identifiers.
-
Creates a
PointAnnotationManager
which is used to manage a collection ofPointAnnotation
s. Annotations persist across style changes. If an annotation manager with the sameid
has already been created, the old one will be removed as ifremoveAnnotationManager(withId:)
had been called.AnnotationOrchestrator
keeps a strong reference to anyPointAnnotationManager
until it is removed. -
Creates a
PolygonAnnotationManager
which is used to manage a collection ofPolygonAnnotation
s. Annotations persist across style changes. If an annotation manager with the sameid
has already been created, the old one will be removed as ifremoveAnnotationManager(withId:)
had been called.AnnotationOrchestrator
keeps a strong reference to anyPolygonAnnotationManager
until it is removed. -
Creates a
PolylineAnnotationManager
which is used to manage a collection ofPolylineAnnotation
s. Annotations persist across style changes. If an annotation manager with the sameid
has already been created, the old one will be removed as ifremoveAnnotationManager(withId:)
had been called.AnnotationOrchestrator
keeps a strong reference to anyPolylineAnnotationManager
until it is removed. -
Creates a
CircleAnnotationManager
which is used to manage a collection ofCircleAnnotation
s. Annotations persist across style changes. If an annotation manager with the sameid
has already been created, the old one will be removed as ifremoveAnnotationManager(withId:)
had been called.AnnotationOrchestrator
keeps a strong reference to anyCircleAnnotationManager
until it is removed. -
Removes an annotation manager, this will remove the underlying layer and source from the style. A removed annotation manager will not be able to reuse anymore, you will need to create new annotation manger to add annotations.