Mercurial > gemma
annotate client/src/components/Layerselect.vue @ 543:b111b765b6cd
client: add hardwired WFS layer to map
* As prototype add a getfeature WFS layer asking our own server
for the fairways_dimensions. It has deactivate filter code.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 30 Aug 2018 17:07:35 +0200 |
parents | 505656a9947f |
children |
rev | line source |
---|---|
531
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1 <template> |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
531
diff
changeset
|
2 <div class="form-check d-flex flex-row"> |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
531
diff
changeset
|
3 <input class="form-check-input" @change="visibilityToggled" :id="layername" type="checkbox" :checked="isVisible"> |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
531
diff
changeset
|
4 <label class="form-check-label" :for="layername">{{this.layername}}</label> |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
531
diff
changeset
|
5 </div> |
531
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
6 </template> |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
7 |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
8 <style lang="sass"> |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
9 |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
10 </style> |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
11 |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
12 |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
13 <script> |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
14 export default { |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
15 props: ["layername", "layerindex", "isVisible"], |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
16 name: "layerselect", |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
17 methods: { |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
18 visibilityToggled() { |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
19 this.$emit("visibilityToggled", this.layerindex); |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
20 } |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
21 } |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
22 }; |
9c036b32c852
refac: Layer selection componentized
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
23 </script> |