Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to see layer

1 REPLY 1
Reply
Message 1 of 2
priya007
156 Views, 1 Reply

Unable to see layer

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...
:(
1 REPLY 1
Message 2 of 2
priya007
in reply to: priya007

never mind I gotcha..
Same code, no change... suddenly it worked..
:)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report