Join Bill Weinman for an in-depth discussion in this video Using HTML5 geolocation with Google Maps, part of HTML5: Geolocation.
This is a simple example using HTML5 geolocation data with the Google Maps API.…In the last movie, we saw this in action in a moving vehicle.…Now let's take a look at the code.…This is the 01-geoLocMap.html file from the Chapter 3 folder in the exercise files,…and I am just going to scroll down at the bottom here, and I will scroll down…slowly for those of you who are copying it down.…These things tend to start at the bottom and work their way up, at least the way…that I write them, and so I am going to start at the bottom as we look at it.…
- Understanding how geolocation works
- Detecting geolocation support
- Getting coordinates
- Continuous tracking with watchPosition()
- Integrating geolocation with Google Maps