Builder
Builder for composing a style object.
Types
Properties
Functions
Link copied to clipboard
open fun withBitmapImages(sdf: Boolean, @NonNull values: Array<Pair<String, Bitmap>>): Style.Builder
Will add the images when the map style has loaded.
Link copied to clipboard
open fun withDrawableImages(sdf: Boolean, @NonNull values: Array<Pair<String, Drawable>>): Style.Builder
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, @NonNull stretchX: List<ImageStretches>, @NonNull stretchY: List<ImageStretches>, @Nullable content: ImageContent): Style.Builder
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, @NonNull stretchX: List<ImageStretches>, @NonNull stretchY: List<ImageStretches>, @Nullable content: ImageContent): 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 above a specified layer id.
Link copied to clipboard
Will add the layer when the style has loaded at a specified index.
Link copied to clipboard
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.