-
Dictionary of annotation managers keyed by their identifiers.
Declaration
Swift
public var annotationManagersById: [String : AnnotationManager] { get } -
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.Declaration
Swift
public func makePointAnnotationManager(id: String = String(UUID().uuidString.prefix(5)), layerPosition: LayerPosition? = nil) -> PointAnnotationManagerParameters
idOptional string identifier for this manager.
layerPositionOptionally set the
LayerPositionof the layer managed.Return Value
An instance of
PointAnnotationManager -
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.Declaration
Swift
public func makePolygonAnnotationManager(id: String = String(UUID().uuidString.prefix(5)), layerPosition: LayerPosition? = nil) -> PolygonAnnotationManagerParameters
idOptional string identifier for this manager..
layerPositionOptionally set the
LayerPositionof the layer managed.Return Value
An instance of
PolygonAnnotationManager -
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.Declaration
Swift
public func makePolylineAnnotationManager(id: String = String(UUID().uuidString.prefix(5)), layerPosition: LayerPosition? = nil) -> PolylineAnnotationManagerParameters
idOptional string identifier for this manager.
layerPositionOptionally set the
LayerPositionof the layer managed.Return Value
An instance of
PolylineAnnotationManager -
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.Declaration
Swift
public func makeCircleAnnotationManager(id: String = String(UUID().uuidString.prefix(5)), layerPosition: LayerPosition? = nil) -> CircleAnnotationManagerParameters
idOptional string identifier for this manager.
layerPositionOptionally set the
LayerPositionof the layer managed.Return Value
An instance of
CircleAnnotationManager -
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.
Declaration
Swift
public func removeAnnotationManager(withId id: String)Parameters
idIdentifer of annotation manager to remove
AnnotationOrchestrator Class Reference