2 * Popup extension to L.Marker, adding openPopup & bindPopup methods.
6 openPopup: function() {
7 this._popup
.setLatLng(this._latlng
);
8 this._map
.openPopup(this._popup
);
13 closePopup: function() {
19 bindPopup: function(content
, options
) {
20 options
= L
.Util
.extend({offset
: this.options
.icon
.popupAnchor
}, options
);
22 this._popup
= new L
.Popup(options
);
23 this._popup
.setContent(content
);
24 this.on('click', this.openPopup
, this);