move street view cover button to the map as circleControl
default-pipeline default-pipeline #160

This commit is contained in:
bence committed 2021-05-02 15:04:14 +02:00
1 parent 35cab17c21
commit c112a25409
3 files changed
+18 -7

No files matched your search

+6
View File
@@ -55,6 +55,12 @@
visibility: hidden;
}
#overlayControl {
bottom: 20px;
right: 10px;
z-index: 3;
}
#deleteButton {
display: none;
}
+2 -2
View File
@@ -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 () {
+10 -5
View File
@@ -18,11 +18,6 @@
<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">