How to disable switch map layer button?

Carlos Eduardo3 years ago

Is there any option in the XML file to disable the map layer switch button?

Screenshot

Anton Tananaev3 years ago

It can only be disabled in the code.

Carlos Eduardo3 years ago

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.

Example

Ali Raza3 years ago

@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 :)

draksh2 years ago

@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.