Hi All,
I went through the posted messages that had refresh problems but nothing is helping me. I am not sure why the following code is not displaying the layer group "Test" on the web.. Please do help asap.
var mylayer = map.getMapLayerGroup("Test")
if (mylayer == null)
alert("layer test not found.");
else
{
alert("layerGroup test found............!!!!");
map.setAutoRefresh(false);
mylayer.setVisibility(true);
mylayer.setShowInLegend(true);
map.setAutoRefresh(true);
map.refresh();
}
I get the alert msg "Test found" but i am not seeing the layer on the map...
:(