remove stray bracket

This commit is contained in:
Iris Lightshard 2023-07-15 19:49:16 -06:00
parent d2c431760f
commit 196294b5b8
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -29,15 +29,14 @@ function resizeMarkers() {
// we need a way to queue the resize for when the icon is finished loading
tokens.forEach(t=>{
const icon = t.m.options.icon;
const scaleFactor = mapImg._image.clientWidth / mapImg._image.naturalWidth;
const icon = t.m.options.icon;
const scaleFactor = mapImg._image.clientWidth / mapImg._image.naturalWidth;
icon.options.iconSize = [scaleFactor * t.t.w, scaleFactor * t.t.h];
icon.options.iconAnchor = [scaleFactor * t.t.oX, scaleFactor * t.t.oY];
icon.options.popupAnchor = [0, -scaleFactor * t.t.oY];
icon.options.iconSize = [scaleFactor * t.t.w, scaleFactor * t.t.h];
icon.options.iconAnchor = [scaleFactor * t.t.oX, scaleFactor * t.t.oY];
icon.options.popupAnchor = [0, -scaleFactor * t.t.oY];
t.m.setIcon(icon);
}
t.m.setIcon(icon);
});
}