sdk-maps / com.tomtom.online.sdk.map / MapViewExtension

MapViewExtension

interface MapViewExtension

Interface that provides methods to manipulate map mode and layouts (e.g. set 2D/3D mode, turn on/off traffic layer).

Functions

is2D

abstract fun is2D(): Boolean

True if 2D mode is set, false otherwise.

layers

abstract fun layers(): MapLayers

Get settings that allow to manipulate map layers options.

set25DMode

abstract fun set25DMode(): Unit

Set 2.5 mode for map.

set2DMode

abstract fun set2DMode(): Unit

Set 2d mode for map.

set3DMode

abstract fun set3DMode(): Unit

Because our map don't support 3d mode yet, 2.5 mode is set.

tiles

abstract fun tiles(): MapTiles

Get settings that allow to manipulate map tiles options.

trafficFlow

abstract fun trafficFlow(): TrafficFlowStep

Get settings that allow to manipulate traffic options.

trafficFlowAndIncidents

abstract fun trafficFlowAndIncidents(): TrafficFlowAndIncidentStep

Get settings that allow to manipulate traffic incident and flow options simultaneously.

trafficIncidents

abstract fun trafficIncidents(): TrafficIncidentsStep

Get settings that allow to manipulate traffic incidents options.

trafficOff

abstract fun trafficOff(): Unit

Turn off traffic layer. Incidents and flow. (Vector and raster type)

Inheritors

TomtomMap

interface TomtomMap : RouteExtension, MarkerExtension, MapManipulationExtension, MapInfoExtension, MapCallbacksExtension, MapViewExtension, MarkersCallbackExtension, OverlaysCallbackExtension, RouteCallbackExtension, LocationSourceExtension, OnRequestPermissionsResultCallback, CameraCallbacksExtension

Interface that is the main entry point for all methods related to the map. TomtomMap is obtained using the MapFragment#getAsyncMap(OnMapReadyCallback) method on a MapFragment.