Allow pointer-events to be set via options passed to shape
This commit is contained in:
parent
ec16ea8ace
commit
a22ce7ee50
@ -57,6 +57,9 @@ L.Path = L.Path.extend({
|
||||
if (this.options.fill) {
|
||||
this._path.setAttribute('fill-rule', 'evenodd');
|
||||
}
|
||||
if (this.options.pointerEvents) {
|
||||
this._path.setAttribute('pointer-events', this.options.pointerEvents);
|
||||
}
|
||||
this._updateStyle();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user