Mapbox Style Manager
Wrapper class for StyleManager allowing to expose style related methods for MapboxMap.
Functions
Add additional features to a GeoJSON style source.
Adds a new style custom layer.
Adds a new style layer.
Adds a custom geometry to be used in the style. To add the data, implement the CustomGeometrySourceOptions.Builder.fetchTileFunction callback in the options and call setStyleCustomGeometrySourceTileData
Adds a new style custom layer.
Note! This is an experimental feature. It can be changed or removed in future versions.
Adds an image to be used in the style. This API can also be used for updating an image. If the image for a given imageId was already added, it gets replaced by the new image.
Adds a new style layer.
Adds a new style source. Note: When adding a geojson source, this method does not synchronously parse the GeoJSON data. The events API shall be used to make sure the provided GeoJSON data is valid. In case the GeoJSON is valid, a MapLoaded event will be propagated. In case of errors, a MapLoadingError event will be propagated instead.
Gets the value of a style atmosphere property.
Get an image from the style.
Gets style import config.
Gets the value of style import config.
Returns the existing style imports.
Gets style import schema.
Gets style layer properties.
Gets the value of style layer property.
Returns the existing style layers.
Gets the value of a style projection property.
Gets style source properties.
Gets the value of style source property.
Returns the existing style sources.
Gets the value of a style terrain property.
Returns the map style's transition options. By default, the style parser will attempt to read the style default transition options, if any, fallback-ing to an immediate transition otherwise. Transition options can be overridden via setStyleTransition, but the options are reset once a new style has been loaded.
Checks whether an image exists.
Invalidate region for provided custom geometry source.
Invalidate tile for provided custom geometry source.
Note! This is an experimental feature. It can be changed or removed in future versions.
Note! This is an experimental feature. It can be changed or removed in future versions.
Checks if a style layer is persistent.
Check if the style is completely loaded.
Moves an existing style layer
Remove features from a GeoJSON style source.
Removes an image from the style.
Removes an existing style import.
Removes an existing style layer.
Removes an existing style source.
Sets the style global atmosphere properties.
Set tile data of a custom geometry.
Note! This is an experimental feature. It can be changed or removed in future versions.
Sets style layer properties. This method can be used to perform batch update for a style layer properties. The structure of a provided properties value must conform to a format for a corresponding layer type. Modification of a layer id and/or a layer type (https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#type) is not allowed.
Sets the map's projection. If called with NULL, the map will reset to Mercator.
Sets a value to a style source property. Note: When setting the "data" property of a geojson source, this method does not synchronously parse the GeoJSON data. The events API shall be used to make sure the provided GeoJSON data is valid. In case the GeoJSON is valid, a MapLoaded event will be propagated. In case of errors, a MapLoadingError event will be propagated instead.
Overrides the map style's transition options with user-provided options.
Checks whether a given style layer exists.
Checks whether a given style source exists.
Update existing features in a GeoJSON style source.
Updates the image of an image style source.