Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change controls style with CSS in OpenLayers 3.5.0

Tags:

openlayers-3

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 ?

like image 379
Geo-x Avatar asked Feb 10 '23 22:02

Geo-x


1 Answers

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.

like image 92
Jonatas Walker Avatar answered Feb 16 '23 04:02

Jonatas Walker