Mercurial > gemma
view client/src/application/Linetool.vue @ 691:d643ff60f607
Client: improve style of waterway axis.
* Add label and circle style to waterway axis via WFS.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 20 Sep 2018 14:33:34 +0200 |
parents | 83081ba6c9c1 |
children | f09cbe80a864 |
line wrap: on
line source
<template> <div @click="drawLine" class="ui-element d-flex shadow drawtool"> <i :class="icon"></i> </div> </template> <style lang="scss"> .drawtool { position: absolute; bottom: 0; right: 0; background-color: white; padding: $small-offset; border-radius: $border-radius; margin-left: $offset; height: $icon-width; width: $icon-height; margin-bottom: $offset; margin-right: $offset; z-index: 2; } </style> <script> import { mapGetters } from "vuex"; export default { name: "linetool", methods: { drawLine() { this.$store.commit("application/toggleDrawModeLine"); } }, computed: { ...mapGetters("application", ["drawMode"]), icon() { return { fa: true, "fa-pencil": !this.drawMode, "fa-pencil-square": this.drawMode }; } } }; </script>