Menü verbessert: Button zur Qualitätsauswahl, Pfeilchen im DropDown
This commit is contained in:
+16
-4
@@ -32,8 +32,9 @@
|
|||||||
<div id="sideBarOuter">
|
<div id="sideBarOuter">
|
||||||
<aside id="sidebar">
|
<aside id="sidebar">
|
||||||
<button class="sideBarButtons" id="closeSideBarButton" title="Menü einklappen"><<</button>
|
<button class="sideBarButtons" id="closeSideBarButton" title="Menü einklappen"><<</button>
|
||||||
<select name="basemap" id="basemap">
|
<div class="selectWrapper">
|
||||||
<option value="" disabled selected>Hintergrundkarte</option>
|
<select name="basemap" id="basemap">
|
||||||
|
<option value="" disabled selected>Hintergrundkarte </option>
|
||||||
<option value="openfree_bright">OpenFreeMap hell</option>
|
<option value="openfree_bright">OpenFreeMap hell</option>
|
||||||
<option value="openfree_dark">OpenFreeMap dunkel</option>
|
<option value="openfree_dark">OpenFreeMap dunkel</option>
|
||||||
<option value="openfree_liberty">OpenFreeMap Liberty</option>
|
<option value="openfree_liberty">OpenFreeMap Liberty</option>
|
||||||
@@ -41,16 +42,27 @@
|
|||||||
<option value="terrain">Terrain</option>
|
<option value="terrain">Terrain</option>
|
||||||
<option value="satellite_terrain">Terrain mit Satellitenbild</option>
|
<option value="satellite_terrain">Terrain mit Satellitenbild</option>
|
||||||
</select>
|
</select>
|
||||||
|
<span class="selectArrow">⏷</span>
|
||||||
|
</div>
|
||||||
|
<div class="selectWrapper">
|
||||||
<select name="pointcloud" id="pointcloud">
|
<select name="pointcloud" id="pointcloud">
|
||||||
<option value="" disabled selected>Punktwolke auswählen</option>
|
<option value="" disabled selected>Punktwolke auswählen</option>
|
||||||
<option value="first">1. Fläche unten</option>
|
<option value="first">1. Fläche unten</option>
|
||||||
<option value="second">2. Felswand</option>
|
<option value="second">2. Felswand</option>
|
||||||
<option value="third">3. Fläche oben mit Spuren</option>
|
<option value="third">3. Fläche oben mit Spuren</option>
|
||||||
</select>
|
</select>
|
||||||
|
<span class="selectArrow">⏷</span>
|
||||||
|
</div>
|
||||||
<button id="disable">Punktwolke ausblenden</button>
|
<button id="disable">Punktwolke ausblenden</button>
|
||||||
<p id="pointSliderValue"></p>
|
<p class="sideBarText">Qualität der Punktwolke</p>
|
||||||
|
<div id="buttonRow">
|
||||||
|
<button class="qualityButtons">niedrig</button>
|
||||||
|
<button class="qualityButtons active">mittel</button>
|
||||||
|
<button class="qualityButtons">hoch</button>
|
||||||
|
</div>
|
||||||
|
<p class="sideBarText" id="pointSliderValue"></p>
|
||||||
<input id="pointSlider" type="range" min="1000000" max="9000000" value="3000000">
|
<input id="pointSlider" type="range" min="1000000" max="9000000" value="3000000">
|
||||||
<p id="pointSizeSliderValue"></p>
|
<p class="sideBarText" id="pointSizeSliderValue"></p>
|
||||||
<input id="pointSizeSlider" type="range" min="0.1" max="5" value="1" step="0.1">
|
<input id="pointSizeSlider" type="range" min="0.1" max="5" value="1" step="0.1">
|
||||||
<div class="logos">
|
<div class="logos">
|
||||||
<a href="http://www.jade-hs.de">
|
<a href="http://www.jade-hs.de">
|
||||||
|
|||||||
@@ -366,3 +366,19 @@ if (closeButton) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Qualitätsbuttons aktivieren/deaktivieren
|
||||||
|
const qualityButtons = document.querySelectorAll('.qualityButtons');
|
||||||
|
|
||||||
|
qualityButtons.forEach(button => {
|
||||||
|
|
||||||
|
button.addEventListener('click', () => {
|
||||||
|
|
||||||
|
qualityButtons.forEach(btn => {
|
||||||
|
btn.classList.remove('active');
|
||||||
|
});
|
||||||
|
|
||||||
|
button.classList.add('active');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
@@ -43,7 +43,7 @@ body{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logos{
|
.logos{
|
||||||
margin-top:50px;
|
margin-top:30px;
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
opacity:0.8;
|
opacity:0.8;
|
||||||
}
|
}
|
||||||
@@ -152,6 +152,21 @@ select{
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selectWrapper{
|
||||||
|
position:relative;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selectArrow{
|
||||||
|
position:absolute;
|
||||||
|
right:14px;
|
||||||
|
top:48%;
|
||||||
|
transform:translateY(-50%);
|
||||||
|
pointer-events:none;
|
||||||
|
font-size:14px;
|
||||||
|
color:#000000;
|
||||||
|
}
|
||||||
|
|
||||||
#disable{
|
#disable{
|
||||||
appearance:none;
|
appearance:none;
|
||||||
-webkit-appearance:none;
|
-webkit-appearance:none;
|
||||||
@@ -175,7 +190,7 @@ select{
|
|||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
transition:0.2s;
|
transition:0.2s;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
margin-bottom: 6px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
select:hover{
|
select:hover{
|
||||||
@@ -210,7 +225,7 @@ footer{
|
|||||||
font-size: small;
|
font-size: small;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pointSliderValue, #pointSizeSliderValue{
|
.sideBarText{
|
||||||
font-size:80%;
|
font-size:80%;
|
||||||
margin:0;
|
margin:0;
|
||||||
}
|
}
|
||||||
@@ -310,3 +325,41 @@ position: absolute;
|
|||||||
left: 5px;
|
left: 5px;
|
||||||
padding:5px 15px;
|
padding:5px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#buttonRow{
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
border: none;
|
||||||
|
border-radius: 14px;
|
||||||
|
overflow:hidden;
|
||||||
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.278);
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qualityButtons{
|
||||||
|
flex: 1;
|
||||||
|
margin: 0;
|
||||||
|
appearance:none;
|
||||||
|
-webkit-appearance:none;
|
||||||
|
-moz-appearance:none;
|
||||||
|
border:none;
|
||||||
|
background:rgba(255,255,255,0.92);
|
||||||
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.278);
|
||||||
|
font-size:12px;
|
||||||
|
color:#0f172a;
|
||||||
|
padding:5px;
|
||||||
|
cursor:pointer;
|
||||||
|
transition:0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qualityButtons.active{
|
||||||
|
background:
|
||||||
|
linear-gradient(
|
||||||
|
135deg,
|
||||||
|
rgba(18, 77, 216, 0.92) 10%,
|
||||||
|
rgba(13, 61, 175, 0.92) 60%,
|
||||||
|
rgba(6, 45, 135, 0.92) 100%
|
||||||
|
),
|
||||||
|
rgba(6, 45, 135, 0.92);
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user