function getMyLocation() {
if(navigator.geolocation){
navigator.geolocation.getCurrentPosition(displayLocation);
}
else{
alert("Geolocation not supported");
}
}
var user_lat;
var use
讓我印象深刻的是,iOS中的Google地圖指南針工作得非常好。我正在談論地圖上小藍色「我的位置」點的指南針箭頭,請參閱Google Maps SDK - My Location。它已在最近的版本1.7 enter link description here中引入。我不知道他們如何設法得到如此精確和穩定的指南針,但我希望我的應用程序依賴於精確的標題信息。 因此,問題是否可以從Google Maps