walkermatt / ol-layerswitcher

Layer control for OpenLayers
MIT License
384 stars 176 forks source link

Add 'showPanel' and 'hidePanel' events #417

Closed adrelino closed 2 years ago

walkermatt commented 3 years ago

@adrelino thanks for proposing this. I feel the events should be fired after the panel has been shown/ hidden, this is consistent with many events dispatched in OpenLayers, for example the 'change' event dispatched by Observable.

If you're happy to make these changes I'll merge.