sdk-maps / com.tomtom.online.sdk.map.model / MapViewPort / MapViewPortBuilder

MapViewPortBuilder

open class MapViewPortBuilder

Builder for parameters describing the current map view port (e.g., focal latitude, longitude, zoom level).

Functions

build

open fun build(): MapViewPort!

Creates a new instance of MapViewPort.

focalLatitude

open fun focalLatitude(focalLatitude: Float): MapViewPort.MapViewPortBuilder!

Defines the focal latitude of a MapViewPort.

focalLongitude

open fun focalLongitude(focalLongitude: Float): MapViewPort.MapViewPortBuilder!

Defines the focal longitude of a MapViewPort.

perspectiveRatio

open fun perspectiveRatio(perspectiveRatio: Float): MapViewPort.MapViewPortBuilder!

Defines the current perspective ratio (2D or 3D).

toString

open fun toString(): String

yawDegrees

open fun yawDegrees(yawDegrees: Float): MapViewPort.MapViewPortBuilder!

Defines the current yaw degrees. Can be a value from [0, 360].

zoomLevel

open fun zoomLevel(zoomLevel: Double): MapViewPort.MapViewPortBuilder!

Defines the current zoom level. Can be a value from [0, 20].