openlayers / ol2

OpenLayers v2 - deprecated!
Other
1.48k stars 771 forks source link

Avoid errors #1509

Open bkiselka opened 7 years ago

bkiselka commented 7 years ago

fix for avoiding error if element has no property _eventCacheID

adapted WMS of gutter examples/gutter.html

ahocevar commented 7 years ago

This workaround only cloaks a problem that must be caused by something else. If there is no _eventCacheId, then someone tries to stop observing an element that was never observed. The question is: is it your application that does that, or is it done somewhere in the library?

bkiselka commented 7 years ago

I will add a test to make it more clear.