Structures
The following structures are available globally.
-
Represents body of the MTError exception.
See moreDeclaration
Swift
public struct MTException : Sendable -
Color wrapper.
See moreDeclaration
Swift
public struct MTColor : Sendable, Codable, Equatable -
Options for building a heatmap visualization layer through the helper.
See moreDeclaration
Swift
public struct MTHeatmapLayerOptions : Codable, Sendable -
Options for building a point visualization layer through the helper.
Mirrors the available configuration including common shape options.
See moreDeclaration
Swift
public struct MTPointLayerOptions : Codable, Sendable -
Options for building a polygon (fill) visualization layer through the helper.
See moreDeclaration
Swift
public struct MTPolygonLayerOptions : Codable, Sendable -
Options for building a polyline (line) visualization layer through the helper.
See moreDeclaration
Swift
public struct MTPolylineLayerOptions : Codable, Sendable -
Log object used with MTLogger.
See moreDeclaration
Swift
public struct MTLog -
Map view content builder.
See moreDeclaration
Swift
@resultBuilder public struct MTMapContentBuilder -
Parameters of the map object.
See moreDeclaration
Swift
public struct MTMapOptions : Sendableextension MTMapOptions: Codable -
Declarative Map view for use in SwiftUI
See moreDeclaration
Swift
@MainActor public struct MTMapViewContainer : View -
Provides animation options for navigation functions.
See moreDeclaration
Swift
public struct MTAnimationOptions : Sendable, Codable -
Options for controlling the desired location, zoom, bearing, and pitch of the camera.
See moreDeclaration
Swift
public struct MTCameraOptions : Sendableextension MTCameraOptions: Codable -
Options for drag and pan gesstures.
See moreDeclaration
Swift
public struct MTDragPanOptions : Sendable, Codable -
Options that configure how the map fits to a set of bounds.
See moreDeclaration
Swift
public struct MTFitBoundsOptions : Sendable, Codable -
Options describing the destination and animation of the flyTo transition.
See moreDeclaration
Swift
public struct MTFlyToOptions : Sendable, Codable -
Options for setting padding on calls to map methods.
See moreDeclaration
Swift
public struct MTPaddingOptions : Sendable, Codable, Equatable -
Supporting type to add validation to another style related type.
See moreDeclaration
Swift
public struct MTStyleSetterOptions : Sendable, Codable -
Configuration that controls how an image is registered within the MapTiler style.
See moreDeclaration
Swift
public struct MTStyleImageOptions : Codable, Equatable, Sendable -
Represents rectangular geographic bounds defined by southwest and northeast corners.
See moreDeclaration
Swift
public struct MTBounds : Sendable, Codable, Equatable -
Object sent together with MTEvent.
See moreDeclaration
Swift
public struct MTData : Codable -
One stop in the halo radial gradient: position in [0,1] and color.
See moreDeclaration
Swift
public struct MTHaloStop : Sendable, Codable -
Configuration for the atmospheric glow (halo).
See moreDeclaration
Swift
public struct MTHalo : Sendable, Codable -
A style’s light property provides a global light source for that style.
See moreDeclaration
Swift
public struct MTLight : Sendable, Codable -
Two numbers representing x and y screen coordinates in pixels.
See moreDeclaration
Swift
public struct MTPoint : Codable, Sendable -
The style spec representation of the source if the event has a dataType of source .
See moreDeclaration
Swift
public struct MTSourceData : Codable -
Faces definition for a custom cubemap.
See moreDeclaration
Swift
public struct MTSpaceFaces : Sendable, Codable -
Path-based configuration for cubemap files.
This fetches all images from a path, this assumes all files are named px, nx, py, ny, pz, nz and suffixed with the appropriate extension specified in format.
See moreDeclaration
Swift
public struct MTSpacePath : Sendable, Codable -
Configuration for the “space” background.
See moreDeclaration
Swift
public struct MTSpace : Sendable, Codable -
RGBA color represented by 0…255 components.
See moreDeclaration
Swift
public struct MTRGBAColor : Sendable, Codable -
A stop describing the value and color to apply.
See moreDeclaration
Swift
public struct MTColorRampStop : Sendable, Codable -
Bounds of a color ramp.
See moreDeclaration
Swift
public struct MTColorRampBounds : Sendable, Codable -
Options used when instantiating a color ramp.
See moreDeclaration
Swift
public struct MTColorRampOptions : Sendable, Codable -
Options for rendering the ramp to a canvas strip.
See moreDeclaration
Swift
public struct MTColorRampCanvasStripOptions : Sendable, Codable -
Array-based stop definition for
See morefromArrayDefinition.Declaration
Swift
public struct MTColorRampArrayStop : Sendable, Codable -
A single string value at a given zoom level.
See moreDeclaration
Swift
public struct MTZoomStringValue : Codable, Sendable -
A single numeric value at a given zoom level.
See moreDeclaration
Swift
public struct MTZoomNumberValue : Codable, Sendable -
A single mapping from a property value to an associated numeric value.
See moreDeclaration
Swift
public struct MTHelperPropertyValue : Codable, Sendable
-
Encodes a color to a hex string when converted to JSON. Accepts either a hex color string (e.g. “#RRGGBB”) or a UIColor.
See moreDeclaration
Swift
public struct MTColorValue : Codable, Sendable -
Sky configuration used by
See moremap.setSky.Declaration
Swift
public struct MTSky : Sendable, Codable, Equatable