Map perspective
Map perspective
Set either 2D map perspective for typical map view mode, or 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 code snippets below in your app to switch between perspectived.
Note, that switching between 2D and 3D mode only changes the perspective.
The zoom level and map orientation are set with the methods described in the "Map centering" example.
Perspective ratio can be changed fluent in value - false to true.
_
mapView.setPerspective3D(true)
[self.mapView setPerspective3D:YES];
![]() 3D map perspective |
![]() 2D map perspective |