Geolocation

Google Maps V3 and Geolocation

April 13, 2011
Web Development
Geolocation, Google Maps

In this post I will show how to create a map using Google Maps API V3 and the using browser geolocation we will add a marker to the user’s position. The finished product can be seen at http://ianluckraft.co.uk/demonstrations/google-maps-v3-and-geolocation.php Let’s get started. Create a basic HTML document We need to add a div that will later contain our map. Between the opening and closing body tags place a div with an id of map. ...