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 performing parsing using background thread. Immediately returns GeoJsonSource with no data set and starts preparing actual data using a worker thread.

If using runtime styling:

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

compositing style will be performed correctly under the hood and Style.OnStyleLoaded will be emitted in correct moment of time when all sources are parsed.

If creating geojson sources for already loaded Style please consider using overloaded geoJsonSource(String, GeoJsonSource.Builder.() -> Unit, onGeoJsonParsed: (GeoJsonSource) -> Unit) function and use fully prepared GeoJsonSource in onGeoJsonParsed callback.

fun geoJsonSource(id: String, block: GeoJsonSource.Builder.() -> Unit): GeoJsonSource

DSL function for GeoJsonSource performing parsing using a worker thread. Immediately returns GeoJsonSource with no data set, fully parsed GeoJsonSource is returned in onGeoJsonParsed callback.

Using this method means that it is user's responsibility to proceed with adding this source, layers or other style objects in onGeoJsonParsed callback.

fun geoJsonSource(id: String, config: GeoJsonSource.Builder.() -> Unit, onGeoJsonParsed: OnGeoJsonParsed): 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