ChangeImgBtnAddMarker

This commit is contained in:
scossa 2024-08-17 00:37:54 +02:00
parent a6aa09c692
commit 357ded712d
3 changed files with 7 additions and 6 deletions

View file

@ -10,7 +10,7 @@ body {
#map {
height: 100vh;
width: 100vw;
cursor: url('https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon-2x.png'), auto; /* custom cursore */
cursor: url('https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png'), auto; /* custom cursore */
}
.button-image {

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View file

@ -18,8 +18,7 @@
<title>Document</title>
</head>
<body>
<!-- <button id="addMarkerBtn">BottoneInserimento</button> immagine marker bottone -->
<div id="container"></div>
<button id="addMarkerBtn">BottoneInserimento</button>
<div id="markerFormContainer">
<form id="markerForm" enctype="multipart/form-data">
<div id="noticeCoordsPicker" style="display: none;">
@ -44,9 +43,11 @@
</form>
</div>
<div id="map">
<!-- // document.getElementById("addMarkerBtn").innerHTML = '<img src="https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon-2x.png" alt="Button Image" />'; //immagine marker bottone -->
<button id="addMarkerBtn">📌</button> <!--// bottone vecchio!-->
</div>
<script>
document.getElementById("addMarkerBtn").innerHTML = '<img src="../img/marker-icon13.png" alt="Button Image" />';
//<button id="addMarkerBtn">📌</button> <!--// bottone vecchio!-->
</script>
</div>
</body>
<footer>
<script type="module" type="text/javascript" src="/js/map.js"></script>