Allow pointer-events to be set via options passed to shape

This commit is contained in:
Adam Stull 2012-10-09 13:31:02 -04:00
parent ec16ea8ace
commit a22ce7ee50

View File

@ -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();
},