Merge pull request #1053 from inpursuit/enhancement/3
Allow pointer-events to be set via options passed to shape
This commit is contained in:
commit
08f770fcc2
@ -61,6 +61,9 @@ L.Path = L.Path.extend({
|
|||||||
if (this.options.fill) {
|
if (this.options.fill) {
|
||||||
this._path.setAttribute('fill-rule', 'evenodd');
|
this._path.setAttribute('fill-rule', 'evenodd');
|
||||||
}
|
}
|
||||||
|
if (this.options.pointerEvents) {
|
||||||
|
this._path.setAttribute('pointer-events', this.options.pointerEvents);
|
||||||
|
}
|
||||||
this._updateStyle();
|
this._updateStyle();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user