My question is simple: It is possible to change the controls button styles with a CSS ? And if I do that, Can I don't load the CSS of OpenLayers ?
And the answer is also simple:
.ol-control button{
background-color: rgba(40, 40, 40, 0.85) !important;
}
The !important
is to overwrite the default style.
And no, do load their css. It is too much to substitute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With