walkermatt / ol-layerswitcher

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

Problems with customization of button icon #344

Open MaxDragonheart opened 4 years ago

MaxDragonheart commented 4 years ago

I'm trying to use a custom icon instead of the default using css but I can't do this. I'm using this style:

.layer-switcher { top: 0 !important; right: 0 !important; background-color: transparent !important; content: url("../images/map_icons/layers.png") !important; background-color: rgba(2, 195, 154, 1) !important; padding: 2px !important; }

I see my icon but the botton is inactive; if I comment content it is possible to see the default icon again but born a problem like this:

Screenshot from 2020-08-18 18-27-25