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
Adds the MapTiler logo control to the map.
Adds a text popup to the map.
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 if set.
Returns variants for the current reference style if they exist.
Returns variants for the provided reference style if they exist.
Returns boolean value indicating whether the source with provided id is loaded.
Removes a layer from the map.
Removes the marker from the map.
Removes a source from the map.
Removes a text popup from the map.
Sets the map language.
Sets whether world copies should render.
Sets the current style by reference style and optional variant. Changing the style resets sources and layers.