Openlayers : GeoRennes

le

Objectif:
Exploitation des services d’Arcgis Server de GeoRennes avec Openlayers
Flux: WMS et TMS tuilés
Openlayers
Code source:
var Orthophoto2011 = new OpenLayers.Layer.ArcGIS93Rest("Orthophoto2011","http://web-bdu4/ArcGIS/rest/services/referentiels/orthophoto_2011/MapServer/export/tile/${z}/${y}/${x}");
//needed to override default of PNG for tiled services
Orthophoto2011.params.FORMAT = "png";
map.addLayers([Orthophoto2011]);


// Add Base map.
var PVCI = new OpenLayers.Layer.ArcGIS93Rest("PVCI","http://testweb-bdu3/ArcGIS/rest/services/referentiels/pvci/MapServer/export/tile/${z}/${y}/${x}");
//needed to override default of PNG for tiled services
PVCI.params.FORMAT = "png";
map.addLayers([PVCI]);

// Add Layers.
var travaux_rue_encours = new OpenLayers.Layer.WMS(
« travaux_rue_encours », « http://uc056551/cgi-bin/net2java.pl?PORT=1201&SERVICE=WMS& »,
{srs: ‘EPSG:3948’,layers: ‘travaux_rue_encours’,transparent: »true »,
format: ‘image/png’},
{singleTile: true, opacity: 1, isBaseLayer : false});
map.addLayers([travaux_rue_encours]);
 
 
 

Laisser un commentaire