Openlayers Client - Layer arrets_de_bus
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: 324.21875,
maxExtent: new OpenLayers.Bounds(48000, 56000, 107000, 139000),
projection: new OpenLayers.Projection("EPSG:2169"),
numZoomLevels: 22
});
var layer = new OpenLayers.Layer.WMS( "WMS arrets_de_bus",
"../service?",
{layers: "arrets_de_bus", format: "image/png", srs:"EPSG:2169",
exceptions: "application/vnd.ogc.se_inimage", transparent: true},
{singleTile: true, ratio: 1, isBaseLayer: true} );
map.addLayer(layer);
map.zoomToMaxExtent();
}
</script>