Course lesson

Add a Button that Finds your Location and Navigates the Map to the Location with Leaflet

Rather than setting a location manually, web browsers provide a way that we can request access to someone's location. This lets us personalize features and particularly in our use case, find where the person is on the map to see what's close to them.

Duration
1 min
Access
Pro
Transcript
Available

Rather than setting a location manually, web browsers provide a way that we can request access to someone's location. This lets us personalize features and particularly in our use case, find where the person is on the map to see what's close to them.

Click here for exercise instructions