Skip to content

Commit 900eaa7

Browse files
committed
Remove OSM layer
1 parent 3bac8ba commit 900eaa7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

workshop/exercises/app/js/lines.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
import '../css/style.css';
22
import ImageWMS from 'ol/source/ImageWMS.js';
33
import Map from 'ol/Map.js';
4-
import OSM from 'ol/source/OSM.js';
54
import View from 'ol/View.js';
6-
import { Image as ImageLayer, Tile as TileLayer } from 'ol/layer.js';
5+
import { Image as ImageLayer } from 'ol/layer.js';
76

87
const mapserverUrl = import.meta.env.VITE_MAPSERVER_BASE_URL;
98
const mapfilesPath = import.meta.env.VITE_MAPFILES_PATH;
109

1110
const layers = [
12-
//new TileLayer({
13-
// source: new OSM(),
14-
//}),
1511
new ImageLayer({
1612
extent: [2968743.65508978, 8038921.67212233, 2982981.8632402, 8053818.05714347],
1713
source: new ImageWMS({
1814
url: mapserverUrl + mapfilesPath + 'lines.map&',
19-
params: { 'LAYERS': 'roads', 'STYLES': '' }, // 'type'
15+
params: { 'LAYERS': 'roads', 'STYLES': '' },
2016
ratio: 1
2117
}),
2218
}),

0 commit comments

Comments
 (0)