walkermatt / ol-layerswitcher

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

Cannot change tipLabel, collapseTipLabel, ... after construction #483

Open andilem opened 2 years ago

andilem commented 2 years ago

Currently, it's impossible to change tipLabel, collapseTipLabel (and probably label and collapseLabel and all other options too) after construction with layerSwitcher.set('key', 'value'), because they are read once (in the constructor) from the options and not treated like any other OpenLayers options. With this behavior, I cannot see any way to change the locale/language without having to recreate the LayerSwitcher (please correct me if I'm wrong). It would be great to have this possibility.

andilem commented 2 years ago

Any news on this?