MTPointLayerHelper
public final class MTPointLayerHelper : MTVectorLayerHelper, @unchecked Sendable
Helper for creating a point visualization layer from data and styling options.
Uses the current style to create the underlying source and layers.
-
Undocumented
Declaration
Swift
public var style: MTStyle { get } -
Undocumented
Declaration
Swift
public init(_ style: MTStyle) -
Adds a point 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 addPoint(_ options: MTPointLayerOptions, completionHandler: ((Result<Void, MTError>) -> Void)? = nil) -
addPoint(_:Asynchronous) Adds a point layer based on the provided options.
Declaration
Swift
public func addPoint(_ options: MTPointLayerOptions) async -
addPoint(_:AsynchronouscolorRamp: in: ) Adds a point layer using a ColorRamp for pointColor.
Declaration
Swift
public func addPoint(_ options: MTPointLayerOptions, colorRamp: MTColorRamp, in mapView: MTMapView) async -
Adds a point layer using a ColorRamp for pointColor (completion-based variant).
Declaration
Swift
@available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling") @MainActor public func addPoint( _ options: MTPointLayerOptions, colorRamp: MTColorRamp, in mapView: MTMapView, completionHandler: ((Result<Void, MTError>) -> Void)? = nil )