view client/src/layers/Layerselect.vue @ 925:15bf101e1522

Send 2D X/Y vertices to the database directly instead of sending 3D data and dropping the Z value afterwards.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 06 Oct 2018 13:34:51 +0200
parents 959892ffd72c
children fe923c8ef08f
line wrap: on
line source

<template>
    <div class="form-check d-flex flex-row flex-start selection">
        <input class="form-check-input" @change="visibilityToggled" :id="layername" type="checkbox" :checked="isVisible">
        <LegendElement :layername="layername" :layerindex="layerindex"></LegendElement>
        <label class="layername form-check-label">{{layername}}</label>
    </div>
</template>

<style lang="scss">
.selection {
  text-align: left;
}
.layername {
  margin-left: $small-offset;
}
</style>


<script>
import LegendElement from "./LegendElement.vue";
export default {
  props: ["layername", "layerindex", "isVisible"],
  name: "layerselect",
  components: {
    LegendElement
  },
  methods: {
    visibilityToggled() {
      this.$emit("visibilityToggled", this.layerindex);
    }
  }
};
</script>