Adding scale control to map.

This commit is contained in:
Kasper D. Fischer 2014-05-12 15:54:07 +00:00
parent 55a6c166b6
commit 4ed2af95c0
Notes: subgit 2018-03-07 17:58:51 +01:00
r631 www/trunk

View File

@ -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',