Skip to content

Commit d10a776

Browse files
mbasasanak
authored andcommitted
added TileWMS and ImageWMS for tiled and single image wms maps.
1 parent 5930aa2 commit d10a776

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/gtt-client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Geometry, Point } from 'ol/geom'
66
import { GeoJSON, WKT } from 'ol/format'
77
import { Layer, Tile } from 'ol/layer'
88
import VectorLayer from 'ol/layer/Vector'
9-
import { OSM, XYZ } from 'ol/source'
9+
import { OSM, XYZ, TileWMS, ImageWMS } from 'ol/source'
1010
import { Style, Fill, Stroke, Circle } from 'ol/style'
1111
import { OrderFunction } from 'ol/render'
1212
import {
@@ -1232,6 +1232,10 @@ const getTileSource = (source: string, class_name: string): any => {
12321232
return OSM
12331233
} else if (class_name === 'XYZ') {
12341234
return XYZ
1235+
} else if (class_name === 'TileWMS') {
1236+
return TileWMS
1237+
} else if (class_name === 'ImageWMS') {
1238+
return ImageWMS
12351239
}
12361240
}
12371241
return undefined

0 commit comments

Comments
 (0)