summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-02-19 15:11:27 +0100
committerJonas Smedegaard <dr@jones.dk>2016-02-19 15:11:27 +0100
commit068da25a921f35e8ff7d15c5687d44d4b48ee28a (patch)
tree71404be301b3c45381304dba8b5ba91d59abd175 /templates
parentc2044fcc858c63e0e77061d80f1ee81c0c66edde (diff)
List latitude before longitude.
Diffstat (limited to 'templates')
-rw-r--r--templates/map.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/map.mdwn b/templates/map.mdwn
index 803d1ace..000c973c 100644
--- a/templates/map.mdwn
+++ b/templates/map.mdwn
@@ -16,13 +16,13 @@ function round(n,d) {
return Math.round(Math.pow(10,d)*n)/Math.pow(10,d)
};
function lngLatString(latLng) {
- return round(latLng.lng,5) + ", " + round(latLng.lat,5)
+ return round(latLng.lat,5) + ", " + round(latLng.lng,5)
};
var popup = L.popup();
function positionPopup(e) {
popup
.setLatLng(e.latlng)
- .setContent("Position (long, lat):<br>" + lngLatString(e.latlng))
+ .setContent("Position (lat, long):<br>" + lngLatString(e.latlng))
.openOn(map);
}
map.on('contextmenu', positionPopup);