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:
Frederic Junod
2014-09-16 09:36:42 +02:00
parent 7e502ac477
commit e136b4b4db
3 changed files with 20 additions and 3 deletions

View File

@@ -55,6 +55,9 @@
right: .5em;
transition: opacity .25s;
}
.ol-rotate.ol-hidden {
opacity: 0;
}
.ol-zoom-extent {
top: 4.643em;
left: .5em;