I would like to change the name of "Base layer" and "Overlays" in my LayerSwitcher div to something else.
I've noticed that the div including the texts only has a class and no ID which means it's little bit tricky to access.
I managed to change "Base layer" name with
document.getElementById("layerswitcher").firstChild.firstChild.innerHTML = "new name";
but I don't like this solution. Best would be if I could define the names directly with OpenLayers functions. Is there one?
I read something about using language translations but it's not what I'm after.