Mercurial > gemma
diff client/src/components/map/MapPopup.vue @ 3309:80037790032d
client: fully implemented sections
- added map layer with new style
- implemented in identify tool, map popup and fairway availability dialog
- added sidebar menu item
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 17 May 2019 12:45:13 +0200 |
parents | e37b8afd7bd9 |
children | 271683dee9bf |
line wrap: on
line diff
--- a/client/src/components/map/MapPopup.vue Fri May 17 11:31:30 2019 +0200 +++ b/client/src/components/map/MapPopup.vue Fri May 17 12:45:13 2019 +0200 @@ -81,6 +81,7 @@ <button class="btn btn-xs btn-info" v-tooltip="fairwayAvailabilityLabel" + @click="openFairwayAvailabilityForSection(section)" > <font-awesome-icon icon="chart-line" fixed-width /> </button> @@ -229,6 +230,15 @@ zoom: 17 }); this.openFairwayAvailability(); + }, + openFairwayAvailabilityForSection(section) { + this.$store.commit("fairwayavailability/type", "sections"); + this.$store.commit("imports/selectedSectionId", section.getId()); + this.$store.dispatch("map/moveToFeauture", { + feature: section, + zoom: 17 + }); + this.openFairwayAvailability(); } }, mounted() {