Remove no-longer-needed typecasts

This commit is contained in:
Tom Payne
2014-02-06 22:33:02 +01:00
parent 0475705a49
commit ae215c7c0b

View File

@@ -17,7 +17,7 @@ var projection = ol.proj.configureProj4jsProjection({
var extent = [420000, 30000, 900000, 350000]; var extent = [420000, 30000, 900000, 350000];
var layers = [ var layers = [
new ol.layer.Tile({ new ol.layer.Tile({
source: new ol.source.TileWMS(/** @type {olx.source.TileWMSOptions} */ ({ source: new ol.source.TileWMS({
url: 'http://wms.geo.admin.ch/', url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
attributions: [new ol.Attribution({ attributions: [new ol.Attribution({
@@ -32,10 +32,10 @@ var layers = [
}, },
extent: extent, extent: extent,
serverType: 'mapserver' serverType: 'mapserver'
})) })
}), }),
new ol.layer.Tile({ new ol.layer.Tile({
source: new ol.source.TileWMS(/** @type {olx.source.TileWMSOptions} */ ({ source: new ol.source.TileWMS({
url: 'http://wms.geo.admin.ch/', url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
attributions: [new ol.Attribution({ attributions: [new ol.Attribution({
@@ -47,7 +47,7 @@ var layers = [
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'}, params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
extent: extent, extent: extent,
serverType: 'mapserver' serverType: 'mapserver'
})) })
}) })
]; ];