tiled = new OpenLayers.Layer.WMS(
"Alexandria:Link - Tiled", "http://localhost:8080/geoserver/Alexandria/wms",
{
LAYERS: 'Alexandria:Link',
STYLES: '',
format: format,
tiled: true,
tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom
},
{
buffer: 0,
displayOutsideMaxExtent: true,
isBaseLayer: true,
yx : {'EPSG:26918' : false}
}
);
// setup single tiled layer
untiled = new OpenLayers.Layer.WMS(
"Alexandria:Link - Untiled", "http://localhost:8080/geoserver/Alexandria/wms",
{
LAYERS: 'Alexandria:Link',
STYLES: '',
format: format
},
{
singleTile: true,
ratio: 1,
isBaseLayer: true,
yx : {'EPSG:26918' : false}
}
);
map.addLayers([untiled,tiled]);