phaserLayers managed by Gamemap
Implementation of LayersFlattener Implementation of Setting properties of a layer form script Update show/hide layer form script Update unit test of LayersIteratorTest
This commit is contained in:
parent
ab7b06f71e
commit
43aad4ab14
11 changed files with 258 additions and 196 deletions
|
@ -19,17 +19,20 @@
|
|||
}));
|
||||
</script>
|
||||
<div>
|
||||
<label for="show/hideLayer">Layer Name : </label><input type="checkbox" id="show/hideLayer" name="visible" value="show" checked>
|
||||
<label for="show/hideLayer">Metadata Layer : </label><input type="checkbox" id="show/hideLayer" name="visible" value="show" checked>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('show/hideLayer').onclick = () => {
|
||||
if (document.getElementById('show/hideLayer').checked) {
|
||||
WA.showLayer('LayerName');
|
||||
WA.showLayer('Metadata');
|
||||
}
|
||||
else {
|
||||
WA.hideLayer('LayerName');
|
||||
WA.hideLayer('Metadata');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
WA.setProperty('start', 'openWebsite', 'https://www.wikipedia.org/');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue