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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
viewer.getMap().addLayer(
new Geoportal.Layer.Aggregate(
'cartorisque.avalanches',
[
new OpenLayers.Layer.WMS(
'zont.wms.name',
"http://cartorisque.prim.net/wms/france",
{
layers:'zont_alp,zont_pyr',
format:'image/gif',
transparent:true
},
{
singleTile:true,
projection: "EPSG:4326",
// maxExtent expressed in EPSG:4326 :
maxExtent: new OpenLayers.Bounds(-5.50054,41.3202,10.798,51.0896),
minZoomLevel:5,
maxZoomLevel:15,
opacity:0.5
}
),
new OpenLayers.Layer.WMS(
'zonpi.wms.name',
"http://cartorisque.prim.net/wms/france",
{
layers:'zonpi_alp,zonpi_pyr',
format:'image/gif',
transparent:true
},
{
singleTile:true,
projection: "EPSG:4326",
// maxExtent expressed in EPSG:4326 :
maxExtent: new OpenLayers.Bounds(-5.50054,41.3202,10.798,51.0896),
minZoomLevel:5,
maxZoomLevel:15,
opacity:0.5
}
),
new OpenLayers.Layer.WMS(
'front.wms.name',
"http://cartorisque.prim.net/wms/france",
{
layers:'front_alp,front_pyr',
format:'image/gif',
transparent:true
},
{
singleTile:true,
projection: "EPSG:4326",
// maxExtent expressed in EPSG:4326 :
maxExtent: new OpenLayers.Bounds(-5.50054,41.3202,10.798,51.0896),
minZoomLevel:8,
maxZoomLevel:15,
opacity:1.0
}
),
new OpenLayers.Layer.WMS(
'linpi.wms.name',
"http://cartorisque.prim.net/wms/france",
{
layers:'linpi_alp,linpi_pyr',
format:'image/gif',
transparent:true
},
{
singleTile:true,
projection: "EPSG:4326",
// maxExtent expressed in EPSG:4326 :
maxExtent: new OpenLayers.Bounds(-5.50054,41.3202,10.798,51.0896),
minZoomLevel:10,
maxZoomLevel:15,
opacity:1.0
}
),
new OpenLayers.Layer.WMS(
'label.wms.name',
"http://cartorisque.prim.net/wms/france",
{
layers:'Num_emprise_Alpes,Num_emprise_Pyrenees',
format:'image/gif',
transparent:true
},
{
singleTile:true,
projection: "EPSG:4326",
// maxExtent expressed in EPSG:4326 :
maxExtent: new OpenLayers.Bounds(-5.50054,41.3202,10.798,51.0896),
minZoomLevel:13,
maxZoomLevel:15,
opacity:1.0
}
)
],
// propriétés de l'agrégat :
{
visibility: false,
originators:[
{
logo:'meeddat',
pictureUrl:'http://www.ign.fr/images/logo_meeddat.gif',
url:'http://www.developpement-durable.gouv.fr/'
},
{
logo:'cemagref',
url:'http://www.cemagref.fr/'
}
]
}
)
); |
Partager