MTPolygonLayerHelper
public final class MTPolygonLayerHelper : MTVectorLayerHelper, @unchecked Sendable
Helper for creating a polygon (fill) visualization layer from data and styling options.
-
Undocumented
Declaration
Swift
public var style: MTStyle { get } -
Undocumented
Declaration
Swift
public init(_ style: MTStyle) -
Adds a polygon 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 addPolygon( _ options: MTPolygonLayerOptions, completionHandler: ((Result<MTPolygonLayerResult, MTError>) -> Void)? = nil ) -
addPolygon(_:Asynchronous) Adds a polygon layer based on the provided options (async).
Declaration
Swift
@MainActor public func addPolygon( _ options: MTPolygonLayerOptions ) async throws -> MTPolygonLayerResult -
Removes the layers and source created by the
addPolygonhelperDeclaration
Swift
@MainActor public func removePolygon( result: MTPolygonLayerResult, completionHandler: ((Result<Void, MTError>) -> Void)? = nil ) -
removePolygon(result:Asynchronous) Removes the layers and source created by the
addPolygonhelperDeclaration
Swift
@MainActor public func removePolygon(result: MTPolygonLayerResult) async throws