Skip to content

Commit 0c99685

Browse files
dkastlsanak
authored andcommitted
Adds ImageWMS
Signed-off-by: Daniel Kastl <[email protected]>
1 parent e790b65 commit 0c99685

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/views/gtt_tile_sources/_form.html.erb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<p>
66
<%= f.select :type,
77
options_for_select([
8+
['ol.source.ImageWMS', 'ol.source.ImageWMS'],
89
['ol.source.OSM', 'ol.source.OSM'],
910
['ol.source.TileWMS', 'ol.source.TileWMS'],
1011
['ol.source.XYZ', 'ol.source.XYZ']
@@ -23,6 +24,14 @@
2324

2425
<script>
2526
const tile_source_examples = {
27+
'ol.source.ImageWMS': {
28+
"url": "https://www.example.com/geoserver/wms",
29+
"params": {
30+
"LAYERS": "schema:mydata"
31+
},
32+
"ratio": 1,
33+
"serverType": "geoserver"
34+
},
2635
'ol.source.OSM': {
2736
"url": "https://tile.openstreetmap.jp/{z}/{x}/{y}.png",
2837
"custom": "19/34.74701/135.35740",
@@ -33,7 +42,7 @@
3342
"url": "https://www.example.com/geoserver/wms",
3443
"params": {
3544
"TILED": true,
36-
"LAYERS": "raster:mydata"
45+
"LAYERS": "schema:mydata"
3746
},
3847
"serverType": "geoserver"
3948
},

0 commit comments

Comments
 (0)