Change the control visibility by using css class
Instead of changing the button opacity in the control, only add/remove a css class (ol-hidden). This let the developer easily change the behavior by updating the css.
This commit is contained in:
@@ -55,6 +55,9 @@
|
||||
right: .5em;
|
||||
transition: opacity .25s;
|
||||
}
|
||||
.ol-rotate.ol-hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
.ol-zoom-extent {
|
||||
top: 4.643em;
|
||||
left: .5em;
|
||||
|
||||
Reference in New Issue
Block a user