Index: trunk/extensions/Maps/Services/YahooMaps/YahooMapFunctions.js |
— | — | @@ -15,10 +15,13 @@ |
16 | 16 | function createYMarker(geoPoint, title, label, icon){ |
17 | 17 | var newMarker; |
18 | 18 | |
19 | | - if (icon != '') { |
20 | | - newMarker = new YMarker(geoPoint, new YImage(icon)); |
| 19 | + if ( icon != '' ) { |
| 20 | + /* Determine size of icon and pass it in */ |
| 21 | + var newimg = new Image(); |
| 22 | + newimg.src = icon; |
| 23 | + newMarker = new YMarker( geoPoint, new YImage( icon, new YSize( newimg.width, newimg.height ) ) ); |
21 | 24 | } else { |
22 | | - newMarker = new YMarker(geoPoint); |
| 25 | + newMarker = new YMarker( geoPoint ); |
23 | 26 | } |
24 | 27 | |
25 | 28 | if ((title + label).length > 0) { |