convenience method for changing marker tooltips
This commit is contained in:
parent
71d0268642
commit
22435f693d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user