From e03850ce05e17b22181ca144cdab0cd3fea330d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 2 May 2021 13:42:46 +0200 Subject: [PATCH 1/2] switch off streetViewControl explicitly --- public/static/js/map_editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/static/js/map_editor.js b/public/static/js/map_editor.js index f2cfa04..106f572 100644 --- a/public/static/js/map_editor.js +++ b/public/static/js/map_editor.js @@ -517,6 +517,7 @@ zoomControlOptions: { position: google.maps.ControlPosition.LEFT_BOTTOM }, + streetViewControl: false, draggableCursor: 'crosshair' }); -- 2.45.2 From f9c1829a00a7abe8c0aa37b03164d067daa5b128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 2 May 2021 13:45:34 +0200 Subject: [PATCH 2/2] enable zoomControl for Leaflet map to be consistent with Google map --- public/static/js/map_editor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/static/js/map_editor.js b/public/static/js/map_editor.js index 106f572..b4e5308 100644 --- a/public/static/js/map_editor.js +++ b/public/static/js/map_editor.js @@ -377,8 +377,7 @@ LMapWrapper.divId = divId; LMapWrapper.map = L.map(LMapWrapper.divId, { center: { lat: 0., lng: 0. }, - zoom: 2, - zoomControl: false + zoom: 2 }); LMapWrapper.map.on('click', function (e) { -- 2.45.2