From 9c2ef4df6083d959d1b3d0c1c18045ef878fbb01 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Sat, 30 May 2015 15:52:58 +0200 Subject: [PATCH] add scale control --- css/style.css | 4 ++-- js/index.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/css/style.css b/css/style.css index 289f7ad..a713885 100644 --- a/css/style.css +++ b/css/style.css @@ -108,9 +108,9 @@ td { width: 386px; } -/* margin left sidebar + Bing logo (Bing layer) */ +/* margin left sidebar + Scale */ .leaflet-control-attribution { - margin-left: 480px !important; + margin-left: 515px !important; } /* Profile Control */ diff --git a/js/index.js b/js/index.js index 5efd499..570d430 100644 --- a/js/index.js +++ b/js/index.js @@ -300,6 +300,8 @@ routing: routing, profile: profile }).addTo(map); + + L.control.scale().addTo(map); } initMap();