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

Map centering

Map centering

Center the map in your mobile app either at the current coordinates or any other location, at the zoom level of your choice.

Sample use case: You want to display the maps for selected cities in specific zoom levels.
Your users should be able to easily to switch between different locations.

Use the code snippets below in your app to display maps of different locations (in this case, the current location and the TomTom offices in Amsterdam and Berlin).

The example shows how to center the map on Amsterdam:

_

mapView.center(on: TTCoordinate.AMSTERDAM(), withZoom: 10)
[self.mapView centerOnCoordinate:[TTCoordinate AMSTERDAM] withZoom:10];

 



image

Map centered on Amsterdam with 10 zoom level

image

Map centered on GPS with 10 zoom level