Hi,
I have a map application that uses World Map Kit Online as the base layer, and then add about 20 FeatureLayers to the Map.CustomOverlays (each with its own coloration).
How can I change the opacity of these 20 layers on the client side without having to postback to the server?
This is what I have done clientside with no luck:
function SetOpacity(opacityValue){
map = Map1.GetOpenLayersMap();
for(var i=1; i< map.layers.length; i++){ // starting at index 1 since index 0 = base layer
map.layers.setOpacity(opacityValue);
}
}
I even tried adding map.layers.redraw() after the last line of code above - no luck.
Your help and guidance is greatly appreciated!.
Cheers,
Chris