Placement

data class Placement @JvmOverloads constructor(val inBackground: Boolean, val anchor: Point2F? = null, val padding: Rect? = null) : Parcelable

Placement specification of text and/or image inside map place object. You have to choose between anchor or padding placement

Constructors

Link copied to clipboard
fun Placement(inBackground: Boolean, anchor: Point2F? = null, padding: Rect? = null)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val anchor: Point2F? = null

point where text/image will be anchored to object's coordinates

Link copied to clipboard

if true, ninepatch background will be resized to fit the text/image. if false, drawing of text/image will be independent

Link copied to clipboard
val padding: Rect? = null

text/image will fit into specified padding