I've tried many ways to do it but it doesn't work :/
I've also put an "alert()" in the js and it works before the "localization"
begins but not after... like the signal got lost or something lol
Here's a code snippet of the application:
if(navigator.geolocation) {// if I place an alert() here, the alert() works
browserSupportFlag = true;
navigator.geolocation.getCurrentPosition(function(position) {// if I place
an alert() here, nothing :(
initialLocation = new
google.maps.LatLng(position.coords.latitude,position.coords.longitude);
marker = new google.maps.Marker({
map:map,
draggable:false,
position:initialLocation
});
map.setCenter(initialLocation);
codeLatLng(position.coords.latitude,position.coords.longitude);
infowindow.setPosition(initialLocation);
infowindow.open(map,marker);
}, function() {
handleNoGeolocation(browserSupportFlag);
});
}
Do you have clue??
Thanks a lot!!
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/S3FlR2lUWVVBeGNK.
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.