From 4ed2af95c0a2419e92b82aeb030e1a312c98dca6 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Mon, 12 May 2014 15:54:07 +0000 Subject: [PATCH] Adding scale control to map. --- www/map.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/map.js b/www/map.js index c8ef474..ff4eb26 100644 --- a/www/map.js +++ b/www/map.js @@ -106,6 +106,7 @@ $(document).ready(function() { // create a map in the "map" div, set the view to a given place and zoom map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']); new L.Control.Zoom({ position: 'topright' }).addTo(map); + new L.control.scale({position: 'bottomright', imperial: false}).addTo(map); // add MapQuestOSM tile layer // L.tileLayer.grayscale('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg',