# HG changeset patch # User Thomas Junk # Date 1536302421 -7200 # Node ID a27c405ec1a8b33e4b7e1d43705308ed1b5b9c9c # Parent 93e90f6be2ad6428bc8ade60603ecf1d660f5677 added missing vue files diff -r 93e90f6be2ad -r a27c405ec1a8 client/src/components/Layers.vue --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/components/Layers.vue Fri Sep 07 08:40:21 2018 +0200 @@ -0,0 +1,41 @@ + + + + + diff -r 93e90f6be2ad -r a27c405ec1a8 client/src/components/User.vue --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/components/User.vue Fri Sep 07 08:40:21 2018 +0200 @@ -0,0 +1,38 @@ + + + + + diff -r 93e90f6be2ad -r a27c405ec1a8 client/src/stores/mapstore.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/stores/mapstore.js Fri Sep 07 08:40:21 2018 +0200 @@ -0,0 +1,58 @@ +//import { HTTP } from "../lib/http"; + +import TileWMS from "ol/source/TileWMS.js"; +import { Tile as TileLayer, Vector as VectorLayer } from "ol/layer.js"; +import OSM from "ol/source/OSM"; +import { Stroke, Style } from "ol/style.js"; +import VectorSource from "ol/source/Vector.js"; + +const MapStore = { + namespaced: true, + state: { + layers: [ + { + name: "Open Streetmap", + data: new TileLayer({ + source: new OSM() + }), + isVisible: true + }, + { + name: "D4D", + data: new TileLayer({ + source: new TileWMS({ + url: "https://demo.d4d-portal.info/wms", + params: { LAYERS: "d4d", VERSION: "1.1.1", TILED: true } + }) + }), + isVisible: true + }, + { + name: "Fairways Dimensions", + data: new VectorLayer({ + source: new VectorSource(), + style: new Style({ + stroke: new Stroke({ + color: "rgba(0, 0, 255, 1.0)", + width: 2 + }) + }) + }), + isVisible: true + } + ] + }, + getters: { + layers: state => { + return state.layers; + } + }, + mutations: { + toggleVisibility: (state, layer) => { + state.layers[layer].isVisible = !state.layers[layer].isVisible; + state.layers[layer].data.setVisible(state.layers[layer].isVisible); + } + } +}; + +export default MapStore; diff -r 93e90f6be2ad -r a27c405ec1a8 client/src/views/Usermanagement.vue --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/views/Usermanagement.vue Fri Sep 07 08:40:21 2018 +0200 @@ -0,0 +1,283 @@ + + + + +