--- mapstraction-orig.js 2008-05-20 18:42:20.000000000 +0200 +++ mapstraction.js 2008-06-23 14:09:06.000000000 +0200 @@ -3207,14 +3207,16 @@ */ Marker.prototype.toYahoo = function() { var ymarker; + var size; + if(this.iconSize) { + size = new YSize(this.iconSize[0], this.iconSize[1]); + } + if(this.iconUrl) { - ymarker = new YMarker(this.location.toYahoo (),new YImage(this.iconUrl)); + ymarker = new YMarker(this.location.toYahoo (),new YImage(this.iconUrl, size)); } else { - ymarker = new YMarker(this.location.toYahoo()); - } - if(this.iconSize) { - ymarker.size = new YSize(this.iconSize[0], this.iconSize[1]); + ymarker = new YMarker(this.location.toYahoo(),null,size); } if(this.labelText) { ymarker.addLabel(this.labelText);