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

Types

CustomGeometrySource
Link copied to clipboard
class CustomGeometrySource(id: String, options: CustomGeometrySourceOptions) : StyleContract.StyleSourceExtension

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. Note that encoding is only relevant to raster-dem sources, and is not supported in the TileJson spec.

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
fun customGeometrySource(id: String, block: CustomGeometrySourceOptions.Builder.() -> Unit): CustomGeometrySource

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.