removes ratio, since it'll never be called
This commit is contained in:
parent
ead86bad00
commit
2f8443fe6e
@ -75,9 +75,8 @@
|
||||
var img_name = st['point-file'] || st['marker-file'];
|
||||
var img = new Image();
|
||||
img.src = img_name;
|
||||
var ratio = img.height/img.width;
|
||||
var w = st['marker-width'] || img.width;
|
||||
var h = st['marker-width'] || st['marker-height'] || w*ratio;
|
||||
var h = st['marker-width'] || st['marker-height'];
|
||||
ctx.drawImage(img, 0, 0, w, h);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user