Sorry, you need to enable JavaScript to visit this website.

Map perspective

Map perspective

Set either the 2D map perspective for the typical map view mode, or the 2.5D map perspective for custom scenarios such as moving the map.

Sample use case: You want to switch from 2D to 2.5D modes to support following the moving location in your app.

Use the following code snippets in your app to switch between perspectives.

Note that switching between 2D and 3D modes only changes the perspective. The zoom level and map orientation are set with the methods described in the "Map centering" example.

In order to change the map mode to 2-dimensional, you need to call the following method:

_

tomtomMap.set2DMode();
tomtomMap.set2DMode()

 

To change it back to 3D simply apply the other option setting:

_

tomtomMap.set3DMode();
tomtomMap.set3DMode()

 

image

3D map perspective

image

2D map perspective

You are here