1.   tiled = new OpenLayers.Layer.WMS(
  2.                     "Alexandria:Link - Tiled", "http://localhost:8080/geoserver/Alexandria/wms",
  3.                     {
  4.                         LAYERS: 'Alexandria:Link',
  5.                         STYLES: '',
  6.                         format: format,
  7.                         tiled: true,
  8.                         tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom
  9.                     },
  10.                     {
  11.                         buffer: 0,
  12.                         displayOutsideMaxExtent: true,
  13.                         isBaseLayer: true,
  14.                         yx : {'EPSG:26918' : false}
  15.                     }
  16.                 );
  17.            
  18.                 // setup single tiled layer
  19.                 untiled = new OpenLayers.Layer.WMS(
  20.                     "Alexandria:Link - Untiled", "http://localhost:8080/geoserver/Alexandria/wms",
  21.                     {
  22.                         LAYERS: 'Alexandria:Link',
  23.                         STYLES: '',
  24.                         format: format
  25.                     },
  26.                     {
  27.                        singleTile: true,
  28.                        ratio: 1,
  29.                        isBaseLayer: true,
  30.                        yx : {'EPSG:26918' : false}
  31.                     }
  32.                 );
  33.        
  34.                 map.addLayers([untiled,tiled]);

Posted by map at 12 Nov 2012, 12:09:11 Europe/Berlin
Language: javascript