Spaces:
Running
Running
Update index.html
Browse files- index.html +4 -2
index.html
CHANGED
|
@@ -198,8 +198,10 @@ function loadMapFromStorage() {
|
|
| 198 |
const t = e.getLatLng();
|
| 199 |
document.getElementById("marker-lat").value = t.lat;
|
| 200 |
document.getElementById("marker-lng").value = t.lng;
|
| 201 |
-
|
| 202 |
-
|
|
|
|
|
|
|
| 203 |
document.getElementById("marker-popup").value = e.getPopup() ? e.getPopup().getContent() : "";
|
| 204 |
document.getElementById("marker-tooltip").value = e.getTooltip() ? e.getTooltip().getContent() : "";
|
| 205 |
document.getElementById("marker-editor").style.display = "block";
|
|
|
|
| 198 |
const t = e.getLatLng();
|
| 199 |
document.getElementById("marker-lat").value = t.lat;
|
| 200 |
document.getElementById("marker-lng").value = t.lng;
|
| 201 |
+
map.eachLayer((function(u) {
|
| 202 |
+
document.getElementById("icon-width").value = u.options.icon.options.iconSize[0];
|
| 203 |
+
document.getElementById("icon-height").value = u.options.icon.options.iconSize[1];
|
| 204 |
+
}
|
| 205 |
document.getElementById("marker-popup").value = e.getPopup() ? e.getPopup().getContent() : "";
|
| 206 |
document.getElementById("marker-tooltip").value = e.getTooltip() ? e.getTooltip().getContent() : "";
|
| 207 |
document.getElementById("marker-editor").style.display = "block";
|