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 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);