Classes
The following classes are available globally.
-
Subclassable view for adding custom annotations to the map.
See moreDeclaration
Swift
@MainActor open class MTCustomAnnotationView : UIView, @preconcurrency MTAnnotationextension MTCustomAnnotationView: @preconcurrency MTMapViewContent -
Annotation element that can be added to the map.
See moreDeclaration
Swift
public class MTMarker : MTAnnotation, MTMapViewContent, @unchecked Sendable -
Declaration
Swift
public class MTTextPopup : MTAnnotation, MTMapViewContent, @unchecked Sendable -
Basic benchmarking class.
See moreDeclaration
Swift
@MainActor public final class MTBenchmark : MTMapViewDelegate -
Object representing the map on the screen.
Exposes methods and properties that enable changes to the map, and fires events that can be interacted with.
See moreDeclaration
Swift
@MainActor open class MTMapView : UIView, Sendableextension MTMapView: MTControllableextension MTMapView: MTNavigableextension MTMapView: MTRenderingextension MTMapView: MTStylableextension MTMapView: MTZoomableextension MTMapView: MTLocationManagerDelegate -
Helper for creating a heatmap visualization layer from data and styling options.
See moreDeclaration
Swift
public final class MTHeatmapLayerHelper : 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.
See moreDeclaration
Swift
public final class MTPointLayerHelper : MTVectorLayerHelper, @unchecked Sendable -
Helper for creating a polygon (fill) visualization layer from data and styling options.
See moreDeclaration
Swift
public final class MTPolygonLayerHelper : MTVectorLayerHelper, @unchecked Sendable -
Helper for creating a polyline (line) visualization layer from data and styling options.
See moreDeclaration
Swift
public final class MTPolylineLayerHelper : MTVectorLayerHelper, @unchecked Sendable -
Logger class used for SDK logs.
See moreDeclaration
Swift
public class MTLogger -
Class responsible for location updates.
See moreDeclaration
Swift
public class MTLocationManager : NSObject, @preconcurrency CLLocationManagerDelegate -
Service responsible for gesture handling and state.
See moreDeclaration
Swift
@MainActor public class MTGestureService -
Sets combination of center, bearing and pitch, as well as roll and elevation.
See moreDeclaration
Swift
public class MTMapCameraHelper -
The proxy object for the current map style.
Set of convenience methods for style, sources and layers manipulation. MTStyle is nil until map loading is complete. Since it is loaded asynchronously it should be manipulated only after
See moreMTEvent.didLoadtriggers.Declaration
Swift
@MainActor public class MTStyle -
The background style layer covers the entire map. Use a background style layer to configure a color or pattern to show below all other map content. If the background layer is transparent or omitted from the style, any part of the map view that does not show another style layer is transparent.
See moreDeclaration
Swift
public class MTBackgroundLayer : MTLayer, @unchecked Sendable, Codable -
An image source.
The
See moreurlvalue contains the image location. Thecoordinatesarray contains [longitude, latitude] pairs for the image corners listed in clockwise order: top left, top right, bottom right, bottom left.Declaration
Swift
public class MTImageSource : MTSource, @unchecked Sendable -
A raster DEM source. Only supports Terrain RGB.
See moreDeclaration
Swift
public class MTRasterDEMSource : MTTileSource, @unchecked Sendable -
A raster tile source.
For raster tiles hosted by MapTiler, the “url” value should be of the form https://api.maptiler.com/tiles/[tilesetid]/tiles.json?key=
See moreDeclaration
Swift
public class MTRasterTileSource : MTTileSource, @unchecked Sendable -
Undocumented
See moreDeclaration
Swift
public class MTVectorTileSource : MTTileSource, @unchecked Sendable -
A video source.
The
See moreurlsvalue is an array. For each URL in the array, a video element source will be created. Thecoordinatesarray contains [longitude, latitude] pairs for the video corners listed in clockwise order: top left, top right, bottom right, bottom left.Declaration
Swift
public class MTVideoSource : MTSource, @unchecked Sendable -
Swift wrapper over the MapTiler SDK ColorRamp class.
See moreDeclaration
Swift
@MainActor public final class MTColorRamp : @unchecked Sendable