Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

Reply
Active Member
ambarboza
Posts: 7
Registered: ‎03-27-2012
Message 1 of 1 (1,133 Views)

Base Layer Group SetVisible()

1133 Views, 0 Replies
06-20-2012 11:16 AM

Problem:

The images (IKONOS) that are "Base Layer Groups" on my code do not show on map, just when I click on Zoom Button....
 

Code:

MgLayerGroup tmpGrupo = null;

tmpGrupo = utility.getGroupByName(sMapa, sGrupo);

bool sViIn = false;

 

if (tmpGrupo.IsVisible() == null)

{

sViIn =

false;

}

else

{

sViIn =

true;

}

tmpGrupo.SetVisible(sViIn);

sMapa.Save(resService);

 

 

string popupScript = "top.document.frmMapa.mapFrame.Refresh();";

 

String csname1 = "PopupScript";

 

Type cstype = this.GetType();

 

ClientScriptManagercs = Page.ClientScript;

 

if(!cs.IsStartupScriptRegistered(cstype, csname1))

{

ScriptManager.RegisterStartupScript(this, this.GetType(), "alertscript", popupScript, true);

 }

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.