convenience method for changing marker tooltips

This commit is contained in:
DennisSchiefer 2012-08-31 14:50:22 +01:00
parent 71d0268642
commit 22435f693d

View File

@ -38,6 +38,12 @@ L.LabelMarker = L.Marker.extend({
}
},
// add/change marker tooltip
setTitle: function ( title ) {
this.options.title = title;
this._icon.title = title;
},
// actual icon changing routine
_changeIcon: function () {
var options = this.options,