ui-leaflet icon indicating copy to clipboard operation
ui-leaflet copied to clipboard

TypeError: e.target.resetStyle is not a function

Open nmrm opened this issue 8 years ago • 0 comments

Hi folks,

I noticed a bug(?) in this project: if I invoke the resetStyle of a layer it won't recognize the function causing it to throw an error. If I comment the line 126 and uncomment the line 127 (setStyle with a fixed style) it all works as expected.

Here is the source if you want to confirm: leaflet_ui_bad.zip

On native leaflet js the same resetStyle is working.

With no more for now, Regards, nmrm

nmrm avatar Apr 04 '16 15:04 nmrm