HTML and CSS Reference
Figure 12-4. Integrating the Geolocation API with Google Maps
As you can see, the web form consists of a button and a <div> element that holds a map. When the
page is loaded in the browser, by default the map is centered on Mumbai. If you click Show Current
Location, a callout is displayed that points to the user's current location.
Listing 12-4 shows how this is done.
Listing 12-4. Referencing the Google Maps API Library