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

My location layer

My location layer

Allow your users to display and track their current location; by default it is disabled. Permissions to use GPS are automatically handled by the map.

Sample use case: You want to display the user’s current location and use it to plan a route.

To enable location tracking:

_

tomtomMap.setMyLocationEnabled(true);
tomtomMap.isMyLocationEnabled = true

To get user’s current location:

_

Location location = tomtomMap.getUserLocation();
val location = tomtomMap.userLocation