walkermatt / ol-layerswitcher

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

Ensure button content and attributes are consistent with state #453

Closed walkermatt closed 3 years ago

walkermatt commented 3 years ago

Fixes #452

Consolidate setting button text content and attributes into a single function which is called once the state of the instance is decided during instantiation and from showPanel/ hidePanel.

petergoulborn commented 3 years ago

Sorry for the delay in looking at this - change looks good to me

However - I have to install babel-core dev dependency in order to get it to build. I removed node_modules and installed packages from scratch and had the same problem.