1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| var wms1 = new OpenLayers.Layer.WMS( "Mapa Catalunya 50","http://shagrat.icc.es/lizardtech/iserv/ows?",
{
request:'GetMap',
layers:'mtc50m',
service:'WMS',
version: '1.1.1',
srs:'EPSG:23031',
format:'image/jpeg',
exceptions:'application/vnd.ogc.se_xml'
},
{
singleTile:true,
projection: "EPSG:23031",
resolutions : [550,275,100,50,25,10,5,2,1,0.5,0.25], // m/pixel
units: 'm',
maxExtent: new OpenLayers.Bounds(258000,4485000,536000,4752000),
sphericalMercator: true,
minZoomLevel:1,
maxZoomLevel:18,
opacity:1.0,
isBaseLayer: false,
visibility:true
}
);
Viewer.getMap().addLayer(wms1); |
Partager