ChangeImgBtnAddMarker
This commit is contained in:
parent
a6aa09c692
commit
357ded712d
3 changed files with 7 additions and 6 deletions
|
@ -10,7 +10,7 @@ body {
|
||||||
#map {
|
#map {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
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 {
|
.button-image {
|
||||||
|
|
BIN
public/img/marker-icon13.png
Normal file
BIN
public/img/marker-icon13.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
|
@ -18,8 +18,7 @@
|
||||||
<title>Document</title>
|
<title>Document</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- <button id="addMarkerBtn">BottoneInserimento</button> immagine marker bottone -->
|
<button id="addMarkerBtn">BottoneInserimento</button>
|
||||||
<div id="container"></div>
|
|
||||||
<div id="markerFormContainer">
|
<div id="markerFormContainer">
|
||||||
<form id="markerForm" enctype="multipart/form-data">
|
<form id="markerForm" enctype="multipart/form-data">
|
||||||
<div id="noticeCoordsPicker" style="display: none;">
|
<div id="noticeCoordsPicker" style="display: none;">
|
||||||
|
@ -44,9 +43,11 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div id="map">
|
<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 -->
|
<script>
|
||||||
<button id="addMarkerBtn">📌</button> <!--// bottone vecchio!-->
|
document.getElementById("addMarkerBtn").innerHTML = '<img src="../img/marker-icon13.png" alt="Button Image" />';
|
||||||
</div>
|
//<button id="addMarkerBtn">📌</button> <!--// bottone vecchio!-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<footer>
|
<footer>
|
||||||
<script type="module" type="text/javascript" src="/js/map.js"></script>
|
<script type="module" type="text/javascript" src="/js/map.js"></script>
|
||||||
|
|
Loading…
Reference in a new issue