Skip to content

Commit

Permalink
Activate HiDPI support in wms-custom-proj example
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 15, 2014
1 parent a7426a8 commit 2ccec58
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions examples/wms-custom-proj.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var projection = ol.proj.configureProj4jsProjection({
var extent = [420000, 30000, 900000, 350000];
var layers = [
new ol.layer.Tile({
source: new ol.source.TileWMS({
source: new ol.source.TileWMS(/** @type {olx.source.TileWMSOptions} */ ({
url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions: [new ol.Attribution({
Expand All @@ -31,11 +31,12 @@ var layers = [
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
'FORMAT': 'image/jpeg'
},
extent: extent
})
extent: extent,
serverType: 'mapserver'
}))
}),
new ol.layer.Tile({
source: new ol.source.TileWMS({
source: new ol.source.TileWMS(/** @type {olx.source.TileWMSOptions} */ ({
url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions: [new ol.Attribution({
Expand All @@ -45,8 +46,9 @@ var layers = [
'National parks / geo.admin.ch</a>'
})],
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
extent: extent
})
extent: extent,
serverType: 'mapserver'
}))
})
];

Expand Down

0 comments on commit 2ccec58

Please sign in to comment.