MTHeatmapLayerHelper
public final class MTHeatmapLayerHelper : MTVectorLayerHelper, @unchecked Sendable
Helper for creating a heatmap visualization layer from data and styling options.
-
Undocumented
Declaration
Swift
public var style: MTStyle { get } -
Undocumented
Declaration
Swift
public init(_ style: MTStyle) -
Adds a heatmap 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 addHeatmap( _ options: MTHeatmapLayerOptions, completionHandler: ((Result<MTHeatmapLayerResult, MTError>) -> Void)? = nil ) -
addHeatmap(_:Asynchronous) Adds a heatmap layer based on the provided options (async).
Declaration
Swift
@MainActor public func addHeatmap( _ options: MTHeatmapLayerOptions ) async throws -> MTHeatmapLayerResult -
addHeatmap(_:AsynchronouscolorRamp: in: ) Adds a heatmap layer using a ColorRamp for styling (async).
Declaration
Swift
@MainActor public func addHeatmap( _ options: MTHeatmapLayerOptions, colorRamp: MTColorRamp? = nil, in mapView: MTMapView ) async throws -> MTHeatmapLayerResult -
Removes the layers and source created by the
addHeatmaphelperDeclaration
Swift
@MainActor public func removeHeatmap( result: MTHeatmapLayerResult, completionHandler: ((Result<Void, MTError>) -> Void)? = nil ) -
removeHeatmap(result:Asynchronous) Removes the layers and source created by the
addHeatmaphelperDeclaration
Swift
@MainActor public func removeHeatmap(result: MTHeatmapLayerResult) async throws