Package com.mapbox.maps.extension.style.sources

Types

CustomGeometrySource
Link copied to clipboard
Custom Vector Source, allows using FeatureCollections.
Source
Link copied to clipboard
abstract class Source(sourceId: String) : StyleContract.StyleSourceExtension
Base class for sources.
TileSet
Link copied to clipboard
class TileSet : HashMap<String, Value>
Tile set, allows using TileJson specification as source.

Functions

addSource
Link copied to clipboard
fun StyleInterface.addSource(source: StyleContract.StyleSourceExtension)
Extension function to add a Source provided by the Style Extension to the Style.
customGeometrySource
Link copied to clipboard
DSL function for CustomGeometrySource.
getSource
Link copied to clipboard
fun StyleManagerInterface.getSource(sourceId: String): Source?
Extension function to get a Source provided by the Style Extension by source id.
getSourceAs
Link copied to clipboard
inline fun <T : Source> StyleManagerInterface.getSourceAs(sourceId: String): T?
Tries to cast the Source to T.
updateImage
Link copied to clipboard
fun ImageSource.updateImage(image: Image)
Updates the image of an image style source.