documentation of show/hide layer simplification
This commit is contained in:
parent
973b3405ef
commit
cf811c547b
@ -247,20 +247,9 @@ These 2 methods can be used to show and hide a layer.
|
|||||||
Example :
|
Example :
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
<div>
|
|
||||||
<label for="show/hideBottom">See bottom : </label>
|
|
||||||
<input type="checkbox" id="show/hideBottom" name="visible" value="show" checked>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
document.getElementById('show/hideLayer').onclick = () => {
|
|
||||||
if (document.getElementById('show/hideBottom').checked) {
|
|
||||||
WA.showLayer('bottom');
|
WA.showLayer('bottom');
|
||||||
}
|
//...
|
||||||
else {
|
|
||||||
WA.hideLayer('bottom');
|
WA.hideLayer('bottom');
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user