Skip to content
Snippets Groups Projects
Unverified Commit 9a5038f3 authored by Xaver Maierhofer's avatar Xaver Maierhofer
Browse files

[TASK] Limit shown coordinates to 6 decimals

parent a617449b
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,9 @@ define(["chroma-js", "moment/moment", "tablesort", "helper", "moment/locale/de"]
}
return function (el) {
var latitude = d.nodeinfo.location.latitude;
var longitude = d.nodeinfo.location.longitude;
var a = document.createElement("a");
a.textContent = latitude + ", " + longitude;
a.href = "geo:" + latitude + "," + longitude;
a.textContent = Number(d.nodeinfo.location.latitude.toFixed(6)) + ", " + Number(d.nodeinfo.location.longitude.toFixed(6));
a.href = "geo:" + d.nodeinfo.location.latitude + "," + d.nodeinfo.location.longitude;
el.appendChild(a);
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment