From c0d783db525f252885b84ee7cba0e4b01151cbb5 Mon Sep 17 00:00:00 2001 From: scossa Date: Sun, 18 Aug 2024 23:55:27 +0200 Subject: [PATCH] button css --- public/css/map.css | 23 ++++++++++-------- .../{marker-icon13.png => marker-icon18.png} | Bin 4885 -> 5337 bytes public/index.html | 3 +-- public/js/eventHandler.js | 2 +- 4 files changed, 15 insertions(+), 13 deletions(-) rename public/img/{marker-icon13.png => marker-icon18.png} (54%) diff --git a/public/css/map.css b/public/css/map.css index efa04e9..27ab885 100644 --- a/public/css/map.css +++ b/public/css/map.css @@ -2,6 +2,7 @@ body { margin: 0px !important; } + #container { display: flexbox; } @@ -10,35 +11,34 @@ body { #map { height: 100vh; width: 100vw; - /*cursor: url('https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png'), auto; *//* custom cursore */ - /*cursor: url("/img/marker-icon13.png"), auto;*/ } + .button-image { - width: 5px; /* Set the desired width */ - height: auto; /* Maintain aspect ratio */ + width: 5px; + height: auto; } + .leaflet-popup-content>img { width: 100%; height: 100%; } + #addMarkerBtn { - /* border-radius: 50%; */ z-index: 1000; - background: white; - width: 30px; - height: 30px; + background: rgb(255, 255, 255); + width: 40px; + height: 38px; position: absolute; top: 0; - /* Place the button 20px from the bottom */ right: 0; - /* Place the button 20px from the right */ margin-top: 10px; margin-right: 10px; } + #markerFormContainer { display: none; z-index: 999; @@ -52,6 +52,7 @@ body { background-color: white; } + #markerForm { display: flex; flex-direction: column; @@ -61,10 +62,12 @@ body { margin: 20px 10px; } + #markerForm > button { margin-left: auto; } + #remainingForm { display: none; } \ No newline at end of file diff --git a/public/img/marker-icon13.png b/public/img/marker-icon18.png similarity index 54% rename from public/img/marker-icon13.png rename to public/img/marker-icon18.png index f65ff641957fb5fb37788b41241eab8e535c0fe8..a192088a9a316fd14637fcdcc6e6f19b34cc26ab 100644 GIT binary patch delta 2061 zcmV+o2=e!pCfO+^iBL{Q4GJ0x0000DNk~Le0000I0000U2nGNE03i%cEC2ui#E~T* z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<38bWj3lWMIieaI`G-&icdJ~#6=zDkG zy>s8Y_nz}Rr^Rg^Gmd`Y3kSa6&pE&IQ>@XBkH1n%CVyV=-aQ+JK}W143Vqr6@SCeg z_qx@d8UshqJrT$8=biS$yP~+IK%tbUEDGQ6_pcOX_4<_~Fa9}(wtsl`nNGWXb+WyM ztQ0)!H5mn@%YBkwvg_Khm%dlqKRDBx*gW;?)Fac|Rw_XO%}^6+g>|0N)>BP11Jb*< z|IPCBNq>#khbKFaZ5tGVbFe9dM_t0+&X8%p%tQ#z!JrT}ceYL=ydOq!b7$!k;vB7p zX4>_b+5a4YRygN*@3Ra17HnZ?9HrAladW3`gwgJza)^KuVb4=r33R<5trgEd{Wyq4 z1d7VhXvDjFQ&pFA z-t=cigT=fN)VGz^v6KmStB9pcD6B)Arx7SdgT=x1g4G=)Hs354|_}YxAGJ zV;%_A3ciy;x7&G0BkA7@T5;*##s=v6%szt@uju@iLCTlsj~}r2c0%qeKj%k_r-8Zq arT+mEx}#Af#Z>bE0000
diff --git a/public/js/eventHandler.js b/public/js/eventHandler.js index d0f7c8a..a99e5df 100644 --- a/public/js/eventHandler.js +++ b/public/js/eventHandler.js @@ -21,7 +21,7 @@ export function initEvents(map){ // switch modalità inserimento/visualizzazione if (isRedIcon) { // imposta un marker come icona pulsante, icona cursore normale e esce dalla modalità inserimento. - document.getElementById("addMarkerBtn").innerHTML = 'Button Image'; + document.getElementById("addMarkerBtn").innerHTML = 'Button Image'; document.getElementById('map').style = 'cursor: auto;'; editMode = false; tmpMarkerSet = true;