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

Types

Encoding
Link copied to clipboard

The encoding used by this source. Mapbox Terrain RGB is used by default

enum Encoding : Enum<Encoding>
GeoJsonSource
Link copied to clipboard

A GeoJSON data source.

class GeoJsonSource(builder: GeoJsonSource.Builder) : Source
ImageSource
Link copied to clipboard

An image data source.

class ImageSource(builder: ImageSource.Builder) : Source
RasterDemSource
Link copied to clipboard

A RGB-encoded raster DEM source

class RasterDemSource(builder: RasterDemSource.Builder) : Source
RasterSource
Link copied to clipboard

A raster tile source.

class RasterSource(builder: RasterSource.Builder) : Source
Scheme
Link copied to clipboard

Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.

enum Scheme : Enum<Scheme>
VectorSource
Link copied to clipboard

A vector tile source.

class VectorSource(builder: VectorSource.Builder) : Source

Functions

geoJsonSource
Link copied to clipboard

DSL function for GeoJsonSource accepting empty data source. Immediately returns GeoJsonSource with no data set.

fun geoJsonSource(id: String): GeoJsonSource

DSL function for GeoJsonSource.

Immediately returns GeoJsonSource with no data set and starts preparing actual data using a worker thread if GeoJsonSource.Builder.feature, GeoJsonSource.Builder.featureCollection or GeoJsonSource.Builder.geometry were applied.

If using runtime styling:

loadStyle(style(Style.DARK) { +geoJsonSource(id) { featureCollection(collection) } ... }

Style.OnStyleLoaded will be emitted without waiting to draw GeoJsonSource.feature, GeoJsonSource.featureCollection or GeoJsonSource.geometry on the map.

In order to capture events when actual data is drawn on the map please refer to Observer API and listen to MapEvents.STYLE_DATA_LOADED or MapEvents.MAP_LOADING_ERROR with type = source if data parsing error has occurred.

fun geoJsonSource(id: String, block: GeoJsonSource.Builder.() -> Unit): GeoJsonSource
imageSource
Link copied to clipboard

DSL function for ImageSource.

fun imageSource(id: String, block: ImageSource.Builder.() -> Unit): ImageSource
rasterDemSource
Link copied to clipboard

DSL function for RasterDemSource.

fun rasterDemSource(id: String, block: RasterDemSource.Builder.() -> Unit): RasterDemSource
rasterSource
Link copied to clipboard

DSL function for RasterSource.

fun rasterSource(id: String, block: RasterSource.Builder.() -> Unit): RasterSource
vectorSource
Link copied to clipboard

DSL function for VectorSource.

fun vectorSource(id: String, block: VectorSource.Builder.() -> Unit): VectorSource