MTPolylineLayerHelper
public final class MTPolylineLayerHelper : MTVectorLayerHelper, @unchecked Sendable
Helper for creating a polyline (line) visualization layer from data and styling options.
-
Undocumented
Declaration
Swift
public var style: MTStyle { get } -
Undocumented
Declaration
Swift
public init(_ style: MTStyle) -
Adds a polyline layer based on the provided options.
Declaration
Swift
@available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling") @MainActor public func addPolyline( _ options: MTPolylineLayerOptions, completionHandler: ((Result<MTPolylineLayerResult, MTError>) -> Void)? = nil ) -
addPolyline(_:Asynchronous) Adds a polyline layer based on the provided options (async).
Declaration
Swift
@MainActor public func addPolyline( _ options: MTPolylineLayerOptions ) async throws -> MTPolylineLayerResult -
Removes the layers and source created by the
addPolylinehelperDeclaration
Swift
@MainActor public func removePolyline( result: MTPolylineLayerResult, completionHandler: ((Result<Void, MTError>) -> Void)? = nil ) -
removePolyline(result:Asynchronous) Removes the layers and source created by the
addPolylinehelperDeclaration
Swift
@MainActor public func removePolyline(result: MTPolylineLayerResult) async throws