How can I dynamically set the popup Z-index. I tried setting the "map.Z_INDEX_BASE.Popup" on client-side but it doesn't seem to take affect.
I have three types of layers (Feature, marker and popup as label). I basically want the ability to add different type of shape on top of each other.
Below is the code I use set the marker layer.
function SetLayerZIndex(LayerName, iIndex) {
var map = Map1.GetOpenLayersMap();
if (map) {
var layer = map.getLayer(LayerName);
if (layer) {
layer.div.style.zIndex = iIndex;
}
}
}