MTStyle
The proxy object for the current map style.
Set of convenience methods for style, sources and layers manipulation. MTStyle is null until map loading is complete.
Functions
Registers an image asset that can be referenced from the style.
Adds the MapTiler logo control to the map.
Adds a text popup to the map.
Access to the collection of built-in color ramps.
Creates a color ramp from an array definition.
Creates a custom color ramp.
Disables halo (animates out).
Disables halo state transitions (animations).
Disables space state transitions (animations).
Disables the 3D terrain visualization.
Enables the globe projection visualization.
Enables halo with default gradient.
Enables the mercator projection visualization.
Enables the 3D terrain visualization.
Returns SDK style id for a given reference style.
Returns SDK style id for a given style variant.
Returns display name for a given reference style.
Returns display name for a given style variant.
Gets the current projection type. Defaults to MTProjectionType.MERCATOR when unavailable.
Returns variants for the current reference style if they exist.
Returns variants for the provided reference style if they exist.
Returns a helper instance for adding heatmap layers.
Returns boolean value indicating whether the source with provided id is loaded.
Starts playback for a video source by its identifier.
Returns a helper instance for adding point layers.
Returns a helper instance for adding polygon layers.
Returns a helper instance for adding polyline layers.
Removes a layer from the map.
Removes a layer by its identifier if present.
Removes the marker from the map.
Removes a source from the map.
Removes a source by its identifier if present.
Removes a text popup from the map.
Typed convenience helpers for common clustering styling patterns.
Sets the map language.
Sets whether world copies should render.
Sets the map secondary language.
Sets the current style by reference style and optional variant. Changing the style resets sources and layers.
Stops (pauses) playback for a video source by its identifier.
Updates an image with the given identifier.