Builder

open class Builder

Builder for composing a style object.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class ImageWrapper
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open inner class LayerWrapper

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun fromJson(@NonNull styleJson: String): Style.Builder
Will load a new map style from a json string.
Link copied to clipboard
Will loads a new map style asynchronous from the specified URI.
Link copied to clipboard
Will loads a new map style asynchronous from the specified URL.
Link copied to clipboard
open fun getJson(): String
Link copied to clipboard
open fun getUri(): String
Link copied to clipboard
Will add the images when the map style has loaded.
Link copied to clipboard
Will add the drawables as images when the map style has loaded.
Link copied to clipboard
open fun withImage(@NonNull id: String, @NonNull image: Bitmap, sdf: Boolean, @NonNull stretchX: List<ImageStretches>, @NonNull stretchY: List<ImageStretches>, @Nullable content: ImageContent): Style.Builder
Will add the image when the map style has loaded.
open fun withImage(@NonNull id: String, @NonNull drawable: Drawable, sdf: Boolean): Style.Builder
open fun withImage(@NonNull id: String, @NonNull drawable: Drawable, sdf: Boolean, @NonNull stretchX: List<ImageStretches>, @NonNull stretchY: List<ImageStretches>, @Nullable content: ImageContent): Style.Builder
Will add the drawable as image when the map style has loaded.
Link copied to clipboard
Will add the layer when the style has loaded.
Link copied to clipboard
open fun withLayerAbove(@NonNull layer: Layer, @NonNull aboveLayerId: String): Style.Builder
Will add the layer when the style has loaded above a specified layer id.
Link copied to clipboard
open fun withLayerAt(@NonNull layer: Layer, index: Int): Style.Builder
Will add the layer when the style has loaded at a specified index.
Link copied to clipboard
open fun withLayerBelow(@NonNull layer: Layer, @NonNull belowLayerId: String): Style.Builder
Will add the layer when the style has loaded below a specified layer id.
Link copied to clipboard
Will add the layers when the style has loaded.
Link copied to clipboard
Will add the source when map style has loaded.
Link copied to clipboard
Will add the sources when map style has loaded.
Link copied to clipboard
Will add the transition when the map style has loaded.