AnnotationOrchestrator
AnnotationOrchestrator provides a way to create annotation managers of different types.
-
Dictionary of annotation managers keyed by their identifiers.
-
Creates a
PointAnnotationManagerwhich is used to manage a collection ofPointAnnotations. Annotations persist across style changes. If an annotation manager with the sameidhas already been created, the old one will be removed as ifremoveAnnotationManager(withId:)had been called.AnnotationOrchestratorkeeps a strong reference to anyPointAnnotationManageruntil it is removed. -
Creates a
PolygonAnnotationManagerwhich is used to manage a collection ofPolygonAnnotations. Annotations persist across style changes. If an annotation manager with the sameidhas already been created, the old one will be removed as ifremoveAnnotationManager(withId:)had been called.AnnotationOrchestratorkeeps a strong reference to anyPolygonAnnotationManageruntil it is removed. -
Creates a
PolylineAnnotationManagerwhich is used to manage a collection ofPolylineAnnotations. Annotations persist across style changes. If an annotation manager with the sameidhas already been created, the old one will be removed as ifremoveAnnotationManager(withId:)had been called.AnnotationOrchestratorkeeps a strong reference to anyPolylineAnnotationManageruntil it is removed. -
Creates a
CircleAnnotationManagerwhich is used to manage a collection ofCircleAnnotations. Annotations persist across style changes. If an annotation manager with the sameidhas already been created, the old one will be removed as ifremoveAnnotationManager(withId:)had been called.AnnotationOrchestratorkeeps a strong reference to anyCircleAnnotationManageruntil 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.
AnnotationOrchestrator Class Reference