summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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);