안녕하십니까, 모두 Geolocation API를 사용하여 최종 사용자를 찾는 웹 응용 프로그램을 만들고 있습니다. 그것은 Internet Explorer 9을 제외하고 생각할 수있는 거의 모든 플랫폼에서 훌륭하게 작동합니다. Google 툴바를 Internet Explorer 브라우저 창에로드하면 모든 것이 원활하게 이루어집니다. 나는 인터넷 익스플로러 9 내 응용 프로그램에 액세스 할 때마다ie9 Geolocation을 지원하지 않습니까?
if (navigator.geolocation) {
var locationMarker = null;
navigator.geolocation.watchPosition(
function(position){
var point = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
if (!locationMarker) {
locationMarker = addMarker(
position.coords.latitude,
position.coords.longitude,
"Initial Position"
);
}
else{
updateMarker(
locationMarker,
position.coords.latitude,
position.coords.longitude,
"Updated/Accurate Position"
);
};
map.setCenter(point);
if (map.zoom < 17){
map.setZoom(17);
};
},
function(error){
console.log("Something went wrong: ", error);
},
{
timeout: (5 * 1000),
maximumAge: (1000 * 60 * 15),
enableHighAccuracy: true
}
);
}
else {
alert("Geolocation is not supported by this browser");
}
내가 경고 "위치 정보가이 브라우저에서 지원되지 않습니다"얻을 : 여기에 내가 작업 한 코드의 잘못된 덩어리이다. 내 Google 툴바가 활성화되어 있지 않으면 그렇지 않습니다. 그러나 Google 툴바가 활성화되어 있으면 Google 툴바가 권한을 처리합니다.
Geolocation을 IE9에서 작동 시키려면 어떻게해야합니까? 내 응용 프로그램은 Safari, Firefox, Chrome, iOS 및 Android에서 완벽하게 작동합니다. 나는 완전히 엉망이다.
감사합니다, 타일러 경고의
놀라운. 너. – albert