From ad663f60fdf4f5d1d761502a9e10909c83010964 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Fri, 20 Mar 2015 09:57:53 +0100 Subject: [PATCH] history: move zoom control to topright --- history.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/history.js b/history.js index d4f9ae5..4a26fe3 100644 --- a/history.js +++ b/history.js @@ -92,7 +92,13 @@ function handle_data(data) { } function mkmap(el, newnodes, lostnodes, onlinenodes) { - var map = L.map(el) + var options = { worldCopyJump: true, + zoomControl: false + } + + var map = L.map(el, options) + + L.control.zoom({ position: "topright" }).addTo(map) L.tileLayer("http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg", { subdomains: "1234",