Mercurial > gemma
comparison client/src/components/Map.jsx @ 275:89f1aa33adcf
style: corrected coding style
Used `yarn lint` automatic style fix.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 30 Jul 2018 13:13:10 +0200 |
parents | 78f96f168b59 |
children | 27502291e564 |
comparison
equal
deleted
inserted
replaced
274:4d37c8646123 | 275:89f1aa33adcf |
---|---|
1 /*eslint no-unused-vars: ["error", { "args": "none" }]*/ | 1 /*eslint no-unused-vars: ["error", { "args": "none" }]*/ |
2 import "ol/ol.css"; | 2 import "ol/ol.css"; |
3 import { Map, View } from "ol"; | 3 import { Map, View } from "ol"; |
4 import TileLayer from "ol/layer/Tile"; | 4 import TileLayer from "ol/layer/Tile"; |
5 import OSM from "ol/source/OSM"; | 5 import OSM from "ol/source/OSM"; |
6 import TileWMS from 'ol/source/TileWMS.js'; | 6 import TileWMS from "ol/source/TileWMS.js"; |
7 | 7 |
8 export default { | 8 export default { |
9 render(h) { | 9 render(h) { |
10 return <div id="map" />; | 10 return <div id="map" />; |
11 }, | 11 }, |
20 mounted() { | 20 mounted() { |
21 new Map({ | 21 new Map({ |
22 layers: [ | 22 layers: [ |
23 new TileLayer({ | 23 new TileLayer({ |
24 source: new OSM() | 24 source: new OSM() |
25 }), | 25 }), |
26 new TileLayer({ | 26 new TileLayer({ |
27 source: new TileWMS({ | 27 source: new TileWMS({ |
28 url: 'https://demo.d4d-portal.info/wms', | 28 url: "https://demo.d4d-portal.info/wms", |
29 params: {'LAYERS': 'd4d', 'VERSION': '1.1.1', 'TILED': true}, | 29 params: { LAYERS: "d4d", VERSION: "1.1.1", TILED: true } |
30 }) | 30 }) |
31 }) | 31 }) |
32 ], | 32 ], |
33 target: "map", | 33 target: "map", |
34 view: new View({ | 34 view: new View({ |