We rolled out a new and better SDK for you.
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:
To get user’s current location: