withImage

Will add the drawable as image when the map style has loaded.

Return

this

Parameters

id

the id for the image

drawable

the drawable to be converted and added


Will add the drawable as image when the map style has loaded.

Return

this

Parameters

id

the id for the image

drawable

the drawable to be converted and added

stretchX

image stretch areas for x axix

stretchY

image stretch areas for y axix

content

image content for text to fit


Will add the image when the map style has loaded.

Return

this

Parameters

id

the id for the image

image

the image to be added


Will add the image when the map style has loaded.

Return

this

Parameters

id

the id for the image

image

the image to be added

stretchX

image stretch areas for x axix

stretchY

image stretch areas for y axix

content

image content for text to fit


open fun withImage(@NonNull id: String, @NonNull drawable: Drawable, sdf: Boolean): Style.Builder

Will add the drawable as image when the map style has loaded.

Return

this

Parameters

id

the id for the image

drawable

the drawable to be converted and added

sdf

the flag indicating image is an SDF or template image


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.

Return

this

Parameters

id

the id for the image

drawable

the drawable to be converted and added

sdf

the flag indicating image is an SDF or template image

stretchX

image stretch areas for x axix

stretchY

image stretch areas for y axix

content

image content for text to fit


Will add the image when the map style has loaded.

Return

this

Parameters

id

the id for the image

image

the image to be added

sdf

the flag indicating image is an SDF or template image


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.

Return

this

Parameters

id

the id for the image

image

the image to be added

sdf

the flag indicating image is an SDF or template image

stretchX

image stretch areas for x axix

stretchY

image stretch areas for y axix

content

image content for text to fit