Hey,
link is: www.my-walk.com/addwalk.php
I have an auto marker function:
function startUpdate() {
if(navigator.geolocation) {
if(intervalLoop == false) {
intervalLoop = true;
start = new Date().getTime();
navigator.geolocation.getCurrentPosition(function(position) {
var autolocation = new
google.maps.LatLng(position.coords.latitude,position.coords.longitude);
map.setCenter(autolocation);
addMarker(autolocation);
});
interval = setInterval("autoUpdate()", 5000);
}
} else {
alert("Your browser doesn't support GPS");
}
}
function autoUpdate() {
navigator.geolocation.getCurrentPosition(function(position) {
autolocation = new
google.maps.LatLng(position.coords.latitude,position.coords.longitude);
map.setCenter(autolocation);
addMarker(autolocation);
});
}
function stopUpdate() {
clearInterval(interval);
intervalLoop = false;
finish = new Date().getTime();
}
This code works in Chrome, but has issues in Firefox. Can anyone tell
me why this is?
cheers guys,
Rick
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.