comparison client/src/fairway/store.js @ 849:d63e60b868bf

WIP Fairwayprofile
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 28 Sep 2018 12:35:24 +0200
parents 07be3e5f99a9
children b9aaa093a9fb
comparison
equal deleted inserted replaced
848:22f7d33eee65 849:d63e60b868bf
1 import { HTTP } from "../application/lib/http"; 1 import { HTTP } from "../application/lib/http";
2 import { prepareProfile } from "../application/lib/geo"; 2 import { prepareProfile } from "../application/lib/geo";
3
4 const DEMOLEVEL = 149.345;
3 5
4 const FairwayProfile = { 6 const FairwayProfile = {
5 namespaced: true, 7 namespaced: true,
6 state: { 8 state: {
7 totalLength: 0, 9 totalLength: 0,
8 minAlt: 0, 10 minAlt: 0,
9 maxAlt: 0, 11 maxAlt: 0,
10 currentProfile: [], 12 currentProfile: [],
11 waterLevels: [ 13 waterLevels: [
12 { year: "2016", level: 149.3, color: "#005DFF" }, 14 { year: "2016", level: DEMOLEVEL, color: "#005DFF" },
13 { year: "2017", level: 148.2, color: "#639CFF" } 15 { year: "2017", level: 147.2, color: "#639CFF" }
14 ], 16 ],
15 selectedWaterLevel: 149.3, 17 selectedWaterLevel: DEMOLEVEL,
16 fairwayCoordinates: [], 18 fairwayCoordinates: [],
17 startPoint: null, 19 startPoint: null,
18 endPoint: null 20 endPoint: null
19 }, 21 },
20 getters: { 22 getters: {