remove stray bracket
This commit is contained in:
parent
d2c431760f
commit
196294b5b8
1 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue