move street view cover button to the map as circleControl
All checks were successful
default-pipeline default-pipeline #158

This commit is contained in:
Bence Pőcze 2021-05-02 14:53:01 +02:00
parent 2edfd14437
commit 700d349d38
Signed by: bence
GPG Key ID: AA52B11A3269D1C1
3 changed files with 19 additions and 8 deletions

View File

@ -55,6 +55,12 @@
visibility: hidden;
}
#overlayControl {
bottom: 20px;
right: 10px;
z-index: 3;
}
#deleteButton {
display: none;
}

View File

@ -403,7 +403,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 () {

View File

@ -11,18 +11,13 @@
@extends(templates/layout_full)
@section(subheader)
@section(subheader)
<span><a href="javascript:;" id="mapName" title="Edit map data"><?= $mapName ?></a></span><!--
--><span class="inline hideOnMobile" id="mapSelection">
<button id="mapSelector">
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/map.svg?rev=<?= REVISION ?>" alt="Map Selector" />
</button>
</span><!--
--><span class="inline hideOnMobile" id="mapSelection">
<button id="streetViewCoverSelector">
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/street-view-cover.svg?rev=<?= REVISION ?>" alt="Street View Conver" />
</button>
</span><!--
--><span class="inline hideOnMobile">
<input type="text" id="jumpCoordinates" placeholder="Insert coordinates here" />
<button id="jumpButton" disabled >Jump</button>
@ -71,6 +66,16 @@
<div id="map" class="map">
<div id="lmap" class="map"></div>
<div id="gmap" class="map"></div>
<div id="overlayControl" class="circleControl">
<div id="streetViewCoverSelector" class="controlItem" title="Toggle Street View Cover">
<div>
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/circle_background.svg?rev=<?= REVISION ?>" alt="Circle Background" class="controlBackground" />
</div>
<div>
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/street-view-cover.svg?rev=<?= REVISION ?>" alt="Street View Cover" class="controlIcon" />
</div>
</div>
</div>
</div>
<div id="panorama"></div>
<div id="noPano">