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: 

Base Layer Group SetVisible()

0 REPLIES 0
Reply
Message 1 of 1
ambarboza
1332 Views, 0 Replies

Base Layer Group SetVisible()

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);

 }

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report