What code enables the map to automatically take our current location?

Depending on your app's requirements, you might consider a Map control with Navigate:

The example shows how to do what you want and will also provide the route to get to the destination.

2 Likes