# HG changeset patch # User Frank Koormann # Date 1532701806 -7200 # Node ID d2fb83291c68213e5eed48ed3c316f95e4577a5b # Parent 78f96f168b5988698f23b61398f9fb8c21ffe426# Parent 92470caf81fdf774bc57ac52ef0516bb54320190 Merge diff -r 92470caf81fd -r d2fb83291c68 client/src/components/Map.jsx --- a/client/src/components/Map.jsx Fri Jul 27 15:26:16 2018 +0200 +++ b/client/src/components/Map.jsx Fri Jul 27 16:30:06 2018 +0200 @@ -3,6 +3,7 @@ import { Map, View } from "ol"; import TileLayer from "ol/layer/Tile"; import OSM from "ol/source/OSM"; +import TileWMS from 'ol/source/TileWMS.js'; export default { render(h) { @@ -10,10 +11,10 @@ }, data() { return { - lat: 52.278889, - long: 8.043056, - zoom: 12, - projection: "EPSG:4326" + lat: 6155376, + long: 1819178, + zoom: 11, + projection: "EPSG:3857" }; }, mounted() { @@ -21,6 +22,12 @@ layers: [ new TileLayer({ source: new OSM() + }), + new TileLayer({ + source: new TileWMS({ + url: 'https://demo.d4d-portal.info/wms', + params: {'LAYERS': 'd4d', 'VERSION': '1.1.1', 'TILED': true}, + }) }) ], target: "map",