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
| viewer.getMap().setCenterAtLonLat(6.291246,48.817343,9);
viewer.getMap().addLayer(
new Geoportal.Layer.Aggregate(
'Risques de crues en Meurthe et Moselle',
[
new OpenLayers.Layer.WMS(
'Crue de 1982',
".assets/meurthecrues/1982.kml",
{
layers:'.assets/meurthecrues/1982.kml',
format:'kml',
transparent:true
},
{
opacity:1.0
}
),
new OpenLayers.Layer.WMS(
'Crue de 1947',
".assets/meurthecrues/1947.kml",
{
layers:'.assets/meurthecrues/1947.kml',
format:'kml',
transparent:true
},
{
opacity:1.0
}
),
new OpenLayers.Layer.WMS(
'Crue de 1919',
".assets/meurthecrues/1919.kml",
{
layers:'.assets/meurthecrues/1919.kml',
format:'kml',
transparent:true
},
{
opacity:1.0
}
),
],
{
visibility: false,
originators:[
{
logo:'...',
pictureUrl:'...',
url:'...'
},
]
}
));; |
Partager