function success(position)
{
//get the latitude and longitude
var userlatlng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
var myoptions =
{
center:userlatlng,
zoom:17,
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: true,
}
var map = new google.maps.Map(document.getElementById("mapdiv"), myoptions);
var image = 'images/um1.png';
var marker = new google.maps.Marker({position: userlatlng ,
map: map,
icon: image,
clickable: false
});
}
function initialize()
{
(navigator.geolocation)
{
navigator.geolocation.watchPosition(success);
}
}