Enumerations
The following enumerations are available globally.
-
Anchor positions for marker placement.
See moreDeclaration
Swift
public enum MTAnchor : String, Sendable, Codable -
Alignment for marker rotation relative to map or viewport.
See moreDeclaration
Swift
public enum MTMarkerRotationAlignment : String, Sendable, Codable -
Alignment for marker pitch relative to map or viewport.
See moreDeclaration
Swift
public enum MTMarkerPitchAlignment : String, Sendable, Codable -
Represents all the errors that can occur in the MapTiler SDK.
All methods within the SDK throw MTError.
See moreDeclaration
Swift
public enum MTError : Error -
SDK log level.
See moreDeclaration
Swift
public enum MTLogLevel : Sendable, Equatable -
Type of log messages in the SDK.
See moreDeclaration
Swift
public enum MTLogType : Sendable -
Events triggered by the SDK
See moreDeclaration
Swift
public enum MTEvent : String -
Language of the map labels.
See moreDeclaration
Swift
public enum MTLanguage : Sendable, Codable -
Custom language options.
See moreDeclaration
Swift
public enum MTSpecialLanguage : String, Sendable, Codable -
Languages available for MTMapView object.
See moreDeclaration
Swift
public enum MTCountryLanguage : String, Sendable, Codable, CaseIterable -
Enum representing MTLocationManager errors.
See moreDeclaration
Swift
public enum MTLocationError : Error -
Units of measurement used in MTMapView object.
See moreDeclaration
Swift
public enum MTUnit : String, Sendable -
Gesture types available in the SDK.
See moreDeclaration
Swift
@MainActor public enum MTGestureType -
Controls which map events are forwarded from the map object.
- essential: Low-frequency lifecycle events only (ready, load, moveend, etc.) plus taps.
- cameraOnly: Forwards only camera events (move, zoom) in addition to minimal lifecycle.
- all: Default. Forwards all events including high-frequency move/zoom/touch/render (use with caution on low-end devices).
- off: Minimal wiring to keep internal lifecycle (ready/load) functioning; all other events are suppressed.
Declaration
Swift
public enum MTEventLevel : String, Codable, Sendable -
Performance-oriented presets for MapTiler Swift SDK.
See moreDeclaration
Swift
public enum MTPerformancePresets -
Padding values accepted by
See moreMTFitBoundsOptions.Declaration
Swift
public enum MTFitBoundsPadding : Sendable, Codable, Equatable -
Helper to construct common style expressions without raw strings.
See moreDeclaration
Swift
public enum MTExpression -
Commonly-used feature keys
See moreDeclaration
Swift
public enum MTFeatureKey : String, Sendable -
Helper to construct common filter expressions without raw strings.
See moreDeclaration
Swift
public enum MTFilter -
Typed keys for circle paint properties.
See moreDeclaration
Swift
public enum MTCirclePaintProperty : String, Sendable -
Typed keys for symbol layout properties.
See moreDeclaration
Swift
public enum MTSymbolLayoutProperty : String, Sendable -
Typed keys for symbol paint properties.
See moreDeclaration
Swift
public enum MTSymbolPaintProperty : String, Sendable -
Orientation of the circle when map is pitched.
See moreDeclaration
Swift
public enum MTCirclePitchAlignment : String -
Controls the scaling behavior of the circle when the map is pitched.
See moreDeclaration
Swift
public enum MTCirclePitchScale : String -
Controls the frame of reference for circle translate.
See moreDeclaration
Swift
public enum MTCircleTranslateAnchor : String -
Enum controlling the frame of reference for fill translate.
See moreDeclaration
Swift
public enum MTFillTranslateAnchor : String -
Controls the frame of reference for fill-extrusion translate.
See moreDeclaration
Swift
public enum MTFillExtrusionTranslateAnchor : String -
Direction of light source when map is rotated.
See moreDeclaration
Swift
public enum MTHillshadeIlluminationAnchor : String -
The display of line endings.
See moreDeclaration
Swift
public enum MTLineCap : String -
The display of lines when joining.
See moreDeclaration
Swift
public enum MTLineJoin : String -
Controls the frame of reference for line translate.
See moreDeclaration
Swift
public enum MTLineTranslateAnchor : String -
Types of layers.
See moreDeclaration
Swift
public enum MTLayerType : String, Codable -
Enum representing the visibility of the layer.
See moreDeclaration
Swift
public enum MTLayerVisibility : String -
Resampling/interpolation method to use for overscaling.
See moreDeclaration
Swift
public enum MTRasterResampling : String, Codable, Sendable -
Defines purpose and guidelines on what information is displayed.
See moreDeclaration
Swift
public enum MTMapReferenceStyle : Identifiable, Hashable, Sendable -
Variants of the reference styles.
See moreDeclaration
Swift
public enum MTMapStyleVariant : String, Sendable, CaseIterable, Identifiable -
A typed value container
See moreDeclaration
Swift
public enum MTPropertyValue : Sendable -
Represents the exceptions raised by the MTStyle object.
See moreDeclaration
Swift
public enum MTStyleError : Error -
A unified style value that may be a constant or an expression.
See moreDeclaration
Swift
public enum MTStyleValue : Sendable -
A scheme used for tiles.
See moreDeclaration
Swift
public enum MTTileScheme : String -
Encoding used by the Raster DEM source.
See moreDeclaration
Swift
public enum MTRasterDEMEncoding : String, Sendable -
Declaration
Swift
public enum MTSourceType : String, Codable -
Symbol text anchor positions.
See moreDeclaration
Swift
public enum MTTextAnchor : String, Sendable -
Common text field tokens
See moreDeclaration
Swift
public enum MTTextToken : String, Sendable -
Representing the control of the change rate of the animation.
See moreDeclaration
Swift
public enum MTEasing : String, Sendable, Codable -
Option that can enable default halo or configure it.
See moreDeclaration
Swift
public enum MTHaloOption : Sendable, Codable -
Sets whether extruded geometries are lit relative to the map or viewport.
See moreDeclaration
Swift
public enum MTLightAnchor : String, Sendable, Codable -
Represents corners of the map.
See moreDeclaration
Swift
public enum MTMapCorner : String, Sendable, Codable -
Type of projection the map uses.
See moreDeclaration
Swift
public enum MTProjectionType : String, Sendable, Codable -
Predefined cubemap presets for space backgrounds.
See moreDeclaration
Swift
public enum MTSpacePreset : String, Sendable, Codable, CaseIterable -
Option that can enable default space or configure it.
See moreDeclaration
Swift
public enum MTSpaceOption : Sendable, Codable -
Resampling methods supported by MapTiler SDK.
See moreDeclaration
Swift
public enum MTColorRampResampleMethod : String, Sendable, Codable, CaseIterable -
Built-in presets shipped with the SDK.
See moreDeclaration
Swift
public enum MTColorRampPreset : String, Sendable, Codable, CaseIterable
-
Either a numeric value or zoom-ramped numeric values.
See moreDeclaration
Swift
public enum MTNumberOrZoomNumberValues : Codable, Sendable -
Either a string value or zoom-ramped string values.
See moreDeclaration
Swift
public enum MTStringOrZoomStringValues : Codable, Sendable -
Either a numeric value or property-mapped numeric values.
See moreDeclaration
Swift
public enum MTNumberOrPropertyValues : Codable, Sendable -
Heatmap radius can be a number, zoom-ramped numbers, or property-mapped numbers.
See moreDeclaration
Swift
public enum MTRadiusOption : Codable, Sendable
-
Represents a dash pattern that can be provided as an array of numbers or as a string pattern composed of underscores and spaces (e.g. “___ _ ”).
See moreDeclaration
Swift
public enum MTDashArrayValue : Codable, Sendable -
Expression element used to build MapTiler style expressions for sky values.
See moreDeclaration
Swift
public enum MTSkyExpression : Sendable, Codable, Equatable -
Represents a color or expression for the sky configuration.
See moreDeclaration
Swift
public enum MTSkyColorValue : Sendable, Codable, Equatable -
Represents a numeric value or expression for the sky configuration.
See moreDeclaration
Swift
public enum MTSkyNumberValue : Sendable, Codable, Equatable