Index: trunk/extensions/Maps/includes/services/YahooMaps/jquery.yahoomaps.js |
— | — | @@ -78,7 +78,16 @@ |
79 | 79 | |
80 | 80 | if ( options.resizable ) { |
81 | 81 | this.resizable() |
82 | | - } |
| 82 | + } |
| 83 | + |
| 84 | + this.addMarker = function( location ) { |
| 85 | + map.addOverlay( createYMarker( |
| 86 | + new YGeoPoint( location.lat, location.lon ), |
| 87 | + location.title, |
| 88 | + location.text, |
| 89 | + location.icon |
| 90 | + ) ); |
| 91 | + }; |
83 | 92 | |
84 | 93 | /** |
85 | 94 | * Returns YMarker object on the provided location. |