documentation of show/hide layer simplification

This commit is contained in:
GRL 2021-05-10 17:29:50 +02:00
parent 973b3405ef
commit cf811c547b

View File

@ -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>
``` ```