Placement

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

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

Constructors

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

Functions

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

Properties

anchor
Link copied to clipboard
val anchor: Point2F? = null

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

inBackground
Link copied to clipboard
val inBackground: Boolean

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

padding
Link copied to clipboard
val padding: Rect? = null

text/image will fit into specified padding