I recently tried using the geolocation function together with a leaflet map in the standard IE browser on my Lumia 520. Though it told me that the phone was way off my actual location. So I believe that the phone is not enabling the gps for HTML5 geolocation functions. I also tried running this script:
To get the GPS coordinates. And they really wasn't correct.
Anyone know anything about this?
Code:
/*
var gl;
function displayPosition(position) {
var p = document.getElementById("print");
p.innerHTML = "<table border='1'><tr><th>Timestamp</th><td>" + position.timestamp +
"<tr><th>Latitude (WGS84)</th><td>" + position.coords.latitude + " deg</td></tr>" +
"<tr><th>Longitude (WGS84)</th><td>" + position.coords.longitude + " deg</td></tr></table>";
}
function displayError(positionError) {
alert("Error");
}
gl = navigator.geolocation;
if (gl) {
gl.getCurrentPosition(displayPosition, displayError);
} else {
alert("Geolocation services are not supported by your web browser.");
}
To get the GPS coordinates. And they really wasn't correct.
Anyone know anything about this?
Last edited: