Openlayers Client - Layer ortho_2004
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
OpenLayers.Util.onImageLoadErrorColor = "transparent";
map = new OpenLayers.Map('map', {
maxResolution: 332.731320863,
maxExtent: new OpenLayers.Bounds(262724.083849, 5479078.2284, 324824.40547,
5564257.44654),
projection: new OpenLayers.Projection("EPSG:25832"),
numZoomLevels: 22
});
var layer = new OpenLayers.Layer.WMS( "WMS ortho_2004",
"../service?",
{layers: "ortho_2004", format: "image/png", srs:"EPSG:25832",
exceptions: "application/vnd.ogc.se_inimage", transparent: true},
{singleTile: true, ratio: 1, isBaseLayer: true} );
map.addLayer(layer);
map.zoomToMaxExtent();
}
</script>