MDriven中的坐标系是什么(浏览器位置)
What is the coordinate system in MDriven (browser location)
MDriven ViewModel 变量(vLatitude 和 vLongitude)中获取的值的坐标系是什么?
来自 Angular html5 MDriven 网络客户端的坐标是从浏览器中获取的,如下所示:
<script>
var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
}
</script>
坐标为浮点数
MDriven ViewModel 变量(vLatitude 和 vLongitude)中获取的值的坐标系是什么?
来自 Angular html5 MDriven 网络客户端的坐标是从浏览器中获取的,如下所示:
<script>
var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
}
</script>
坐标为浮点数