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
| var style1 = new OpenLayers.StyleMap({
"default": new OpenLayers.Style({
strokeColor:'#0000ff',
strokeWidth:3
}),
"select": new OpenLayers.Style({
strokeColor:'#3399ff',
strokeWidth:3
})
});
var style2 = new OpenLayers.StyleMap({
"default": new OpenLayers.Style({
strokeColor:'#ff0000',
strokeWidth:3
}),
"select": new OpenLayers.Style({
strokeColor:'#ff3399',
strokeWidth:3
})
});
var gpx1 = viewer.getMap().addLayer("GPX",
"gpx1",
"035-ACIGNE-FK001.simp.gpx",
{
styleMap: style1,
visibility : true,
minZoomLevel: 8,
maxZoomLevel:14
},
{
}
);
var gpx2 = viewer.getMap().addLayer("GPX",
"gpx2",
"035-SERVON-SUR-VILAINE-FK327.simp.gpx",
{
styleMap: style2,
visibility : true,
minZoomLevel: 8,
maxZoomLevel:14
},
{
}
); |
Partager