master
nooahe 2022-11-15 17:31:06 +01:00
parent e5f851a22b
commit 2ba51e0c80
2 changed files with 44 additions and 15 deletions

View File

@ -1,9 +1,27 @@
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
h1 { h1 {
color: black; color: black;
} }
#overlay{ #overlay{
position: absolute;
top: 10vh;
height: 90vh;
background: wheat;
} }
.hidden{ .hidden{
@ -15,20 +33,30 @@ h1 {
} }
#map { #map {
height: 50vh; height: 100vh;
width: 100%; width: 100vw;
float: left; float: left;
} }
#location { #currentLocation {
height: 30px; height: 80px;
width: 30px; width: 80px;
z-index: 100;
} }
#MapControls { .MapControls {
height: 50vh; height: 300px;
width: 50vh; width: 100px;
float: left; position: absolute;
top: 0;
right: 0;
display: flex;
justify-content: end;
} }
@ -50,10 +78,6 @@ h1 {
height: 80px; height: 80px;
} }
#currentLocation {
height: 30px;
width: 30px;
}
#cancel { #cancel {
width: 60px; width: 60px;

View File

@ -56,6 +56,7 @@ function addMarkers(){
marker.addListener("click", () => { marker.addListener("click", () => {
ideeAnzeigen(markerData[i]); ideeAnzeigen(markerData[i]);
openOverlay(); openOverlay();
}) })
@ -74,7 +75,11 @@ function addMarkers(){
map.addListener("click", (mapsMouseEvent) => { map.addListener("click", (mapsMouseEvent) => {
newMarker(mapsMouseEvent.latLng); newMarker(mapsMouseEvent.latLng);
openOverlay();
setTimeout(() => {
openOverlay();
}, 800);
formularErstellen(mapsMouseEvent.latLng); formularErstellen(mapsMouseEvent.latLng);
}) })