From c4c03d5dfb7cdfd5dccccc269e1bd82b46eaab3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 2 May 2021 14:53:01 +0200 Subject: [PATCH] move street view cover button to the map as circleControl --- public/static/css/map_editor.css | 6 ++++++ public/static/js/map_editor.js | 4 ++-- views/admin/map_editor.php | 17 +++++++++++------ 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/public/static/css/map_editor.css b/public/static/css/map_editor.css index 1b46865..26cd4bf 100644 --- a/public/static/css/map_editor.css +++ b/public/static/css/map_editor.css @@ -55,6 +55,12 @@ visibility: hidden; } +#overlayControl { + bottom: 20px; + right: 10px; + z-index: 3; +} + #deleteButton { display: none; } diff --git a/public/static/js/map_editor.js b/public/static/js/map_editor.js index f2cfa04..a3a65c3 100644 --- a/public/static/js/map_editor.js +++ b/public/static/js/map_editor.js @@ -404,7 +404,7 @@ LMapWrapper.loadMarkers(places); - document.getElementById('streetViewCoverSelector').disabled = true; + document.getElementById('streetViewCoverSelector').style.display = 'none'; }, hide: function () { @@ -536,7 +536,7 @@ GMapWrapper.loadMarkers(places); - document.getElementById('streetViewCoverSelector').disabled = false; + document.getElementById('streetViewCoverSelector').style.display = 'block' }, hide: function () { diff --git a/views/admin/map_editor.php b/views/admin/map_editor.php index 1510b6d..4b6da75 100644 --- a/views/admin/map_editor.php +++ b/views/admin/map_editor.php @@ -11,18 +11,13 @@ @extends(templates/layout_full) -@section(subheader) +@section(subheader) - - @@ -71,6 +66,16 @@
+
+
+
+ Circle Background +
+
+ Street View Cover +
+
+