Don't use ol.source.wms.ServerType enum in examples
This commit is contained in:
@@ -14,7 +14,7 @@ var layers = [
|
|||||||
source: new ol.source.ImageWMS({
|
source: new ol.source.ImageWMS({
|
||||||
url: 'http://demo.opengeo.org/geoserver/wms',
|
url: 'http://demo.opengeo.org/geoserver/wms',
|
||||||
params: {'LAYERS': 'topp:states'},
|
params: {'LAYERS': 'topp:states'},
|
||||||
serverType: /** @type {ol.source.wms.ServerType} */ ('geoserver'),
|
serverType: 'geoserver',
|
||||||
extent: [-13884991, 2870341, -7455066, 6338219]
|
extent: [-13884991, 2870341, -7455066, 6338219]
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ var layers = [
|
|||||||
})],
|
})],
|
||||||
crossOrigin: 'anonymous',
|
crossOrigin: 'anonymous',
|
||||||
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
|
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
|
||||||
serverType: /** @type {ol.source.wms.ServerType} */ ('mapserver'),
|
serverType: 'mapserver',
|
||||||
url: 'http://wms.geo.admin.ch/'
|
url: 'http://wms.geo.admin.ch/'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user