Hello,
 
is it possible to change map nae programaticly on runtime? I need to change map 
name, do something with layers and then render map image. I'm struggling with 
this for last 20h.
 
Please if somebody can help me. The problem is down below at commented line.
 
string mgSessionId = Request.QueryString["mgSessionId"].ToString();
string idK = Page.Request.QueryString["idK"];
string idZ = Page.Request.QueryString["idZ"];
string oznakaZdenca;
string cijeviKabela;
int i = 0;

bool showPreviousResults = false;
MgSiteConnection siteConnection = null;
InitializeWebTier();
MgUserInformation userInfo = new MgUserInformation(mgSessionId);
siteConnection = new MgSiteConnection();
siteConnection.Open(userInfo);
MgResourceService resourceService = 
siteConnection.CreateService(MgServiceType.ResourceService) as 
MgResourceService;
MgFeatureService featureService = 
siteConnection.CreateService(MgServiceType.FeatureService) as MgFeatureService;
MgMap map = new MgMap();
map.Open(resourceService, "1"); //opening map with name "1". I need to change 
map name here 

<<winmail.dat>>

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to