diff client/src/store/map.js @ 1927:5a37ee321651

client: make isolines legend graphic internally availableo * Add isolines legend graphic to vuex store. Rename it to reflect it being a dataURL now. * License header: for store/map.js add 2019 and author BER.
author Bernhard Reiter <bernhard@intevation.de>
date Mon, 21 Jan 2019 10:56:14 +0100
parents 9a2fbeaabd52
children 52a6e63d5dcc
line wrap: on
line diff
--- a/client/src/store/map.js	Mon Jan 21 10:41:46 2019 +0100
+++ b/client/src/store/map.js	Mon Jan 21 10:56:14 2019 +0100
@@ -4,13 +4,14 @@
  * SPDX-License-Identifier: AGPL-3.0-or-later
  * License-Filename: LICENSES/AGPL-3.0.txt
  *
- * Copyright (C) 2018 by via donau
+ * Copyright (C) 2018, 2019 by via donau
  *   – Österreichische Wasserstraßen-Gesellschaft mbH
  * Software engineering by Intevation GmbH
  *
  * Author(s):
- * Markus Kottländer <markus@intevation.de>
- * Thomas Junk <thomas.junk@intevation.de>
+ * * Bernhard Reiter <bernhard.reiter@intevation.de>
+ * * Markus Kottländer <markus@intevation.de>
+ * * Thomas Junk <thomas.junk@intevation.de>
  */
 
 //import { HTTP } from "../lib/http";
@@ -45,6 +46,7 @@
     lineTool: null, // open layers interaction object (Draw)
     polygonTool: null, // open layers interaction object (Draw)
     cutTool: null, // open layers interaction object (Draw)
+    isolinesLegendImgDataURL: "",
     layers: [
       {
         name: "Open Streetmap",
@@ -393,6 +395,9 @@
         center: fromLonLat(coordinates, view.getProjection()),
         duration: 700
       });
+    },
+    isolinesLegendImgDataURL: (state, isolinesLegendImgDataURL) => {
+      state.isolinesLegendImgDataURL = isolinesLegendImgDataURL;
     }
   },
   actions: {