From 2ccec588788d073c0125c730b09af9c30431252f Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 15 Jan 2014 13:57:15 +0100 Subject: [PATCH] Activate HiDPI support in wms-custom-proj example --- examples/wms-custom-proj.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/examples/wms-custom-proj.js b/examples/wms-custom-proj.js index 87c7d6d7d1..5857831e85 100644 --- a/examples/wms-custom-proj.js +++ b/examples/wms-custom-proj.js @@ -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({ @@ -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({ @@ -45,8 +46,9 @@ var layers = [ 'National parks / geo.admin.ch' })], params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'}, - extent: extent - }) + extent: extent, + serverType: 'mapserver' + })) }) ];