It can only be disabled in the code.
Thanks Anton!!!
I share this information with anyone interested. The file is located in "/web/lib/ol-layerswitcher/ol-layerswitcher.css". Add "display: none;" in .layer-switcher.
@Carlos Eduardo , buddy Thank you so much for this information. I've tested it and it works fine and you even don't have to restart the service after editing css file. Most of the map layers are useless as Google and OSM are top 2 used by most of the users, thanks to this tweak. Thumbs up :)
@Carlos Eduardo, I don't see lib folder under web in the github source. Could you please share the github path for the lib folder. If it is a generated folder, could you please share the instructions to generate the lib folder.
Is there any option in the XML file to disable the map layer switch button?
Screenshot