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<Void, MTError>) -> Void)? = nil
    )
  • addPolygon(_:) Asynchronous

    Adds a polygon layer based on the provided options (async).

    Declaration

    Swift

    public func addPolygon(_ options: MTPolygonLayerOptions) async