Merge pull request #1053 from inpursuit/enhancement/3

Allow pointer-events to be set via options passed to shape
This commit is contained in:
Vladimir Agafonkin 2013-01-31 08:37:43 -08:00
commit 08f770fcc2

View File

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