Focus

data class Focus @JvmOverloads() constructor(nodes: List<MPINavigatable.MPINode>?, polygons: List<MPINavigatable.MPIPolygon>?, duration: Double?, changeZoom: Boolean?, minZoom: Double?, tilt: Double?, padding: MPIOptions.FocusPadding?, focusZoomFactor: Double?)

Focus holds the properties of values to be set when focus on is called

Constructors

Focus
Link copied to clipboard
fun Focus(nodes: List<MPINavigatable.MPINode>? = null, polygons: List<MPINavigatable.MPIPolygon>? = null, duration: Double? = null, changeZoom: Boolean? = null, minZoom: Double? = null, tilt: Double? = null, padding: MPIOptions.FocusPadding? = null, focusZoomFactor: Double? = null)

Functions

component1
Link copied to clipboard
operator fun component1(): List<MPINavigatable.MPINode>?
component2
Link copied to clipboard
operator fun component2(): List<MPINavigatable.MPIPolygon>?
component3
Link copied to clipboard
operator fun component3(): Double?
component4
Link copied to clipboard
operator fun component4(): Boolean?
component5
Link copied to clipboard
operator fun component5(): Double?
component6
Link copied to clipboard
operator fun component6(): Double?
component7
Link copied to clipboard
operator fun component7(): MPIOptions.FocusPadding?
component8
Link copied to clipboard
operator fun component8(): Double?
copy
Link copied to clipboard
fun copy(nodes: List<MPINavigatable.MPINode>? = null, polygons: List<MPINavigatable.MPIPolygon>? = null, duration: Double? = null, changeZoom: Boolean? = null, minZoom: Double? = null, tilt: Double? = null, padding: MPIOptions.FocusPadding? = null, focusZoomFactor: Double? = null): MPIOptions.Focus
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

changeZoom
Link copied to clipboard
val changeZoom: Boolean? = null
Whether it should change zoom
duration
Link copied to clipboard
val duration: Double? = null
Duration of focus on
focusZoomFactor
Link copied to clipboard
val focusZoomFactor: Double? = null
Set the factor of the focus zoom
minZoom
Link copied to clipboard
val minZoom: Double? = null
Set the minimum zoom level
nodes
Link copied to clipboard
val nodes: List<MPINavigatable.MPINode>? = null
padding
Link copied to clipboard
val padding: MPIOptions.FocusPadding? = null
Set the focus on padding for top, bottom, left, right
polygons
Link copied to clipboard
val polygons: List<MPINavigatable.MPIPolygon>? = null
tilt
Link copied to clipboard
val tilt: Double? = null
Set the tilt