soiz1 commited on
Commit
07d09e3
·
verified ·
1 Parent(s): c406cdc

Update index.html

Browse files
Files changed (1) hide show
  1. 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
- document.getElementById("icon-width").value = t.options.icon.options.iconSize[0];
202
- document.getElementById("icon-height").value = t.options.icon.options.iconSize[1];
 
 
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";