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

MapViewPort

open class MapViewPort

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

Types

MapViewPortBuilder

open class MapViewPortBuilder

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

Functions

builder

open static fun builder(): MapViewPort.MapViewPortBuilder!

Method used to create an instance of MapViewPortBuilder.

getFocalLatitude

open fun getFocalLatitude(): Float

Returns the latitude of map center.

getFocalLongitude

open fun getFocalLongitude(): Float

Returns the longitude of map center.

getPerspectiveRatio

open fun getPerspectiveRatio(): Float

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

getYawDegrees

open fun getYawDegrees(): Float

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

getZoomLevel

open fun getZoomLevel(): Double

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