summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-02-19 15:14:47 +0100
committerJonas Smedegaard <dr@jones.dk>2016-02-19 15:14:47 +0100
commitc620bda5d48daf7a3440f0fc6d3479c9ea9adf61 (patch)
tree8ce1c26777da9e8c61e34cd31081aa9d788635a4 /templates
parent068da25a921f35e8ff7d15c5687d44d4b48ee28a (diff)
Rename function to match swapped lat/long.
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 000c973c..cb3f5935 100644
--- a/templates/map.mdwn
+++ b/templates/map.mdwn
@@ -15,14 +15,14 @@ L.control.scale({ imperial: false }).addTo(map);
function round(n,d) {
return Math.round(Math.pow(10,d)*n)/Math.pow(10,d)
};
-function lngLatString(latLng) {
+function latLngString(latLng) {
return round(latLng.lat,5) + ", " + round(latLng.lng,5)
};
var popup = L.popup();
function positionPopup(e) {
popup
.setLatLng(e.latlng)
- .setContent("Position (lat, long):<br>" + lngLatString(e.latlng))
+ .setContent("Position (lat, long):<br>" + latLngString(e.latlng))
.openOn(map);
}
map.on('contextmenu', positionPopup);