Geo-x
Geo-x

Reputation: 295

Change controls style with CSS in OpenLayers 3.5.0

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 ?

Upvotes: 4

Views: 2757

Answers (1)

Jonatas Walker
Jonatas Walker

Reputation: 14150

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.

Upvotes: 8

Related Questions