Can anyone help me with this process, I'm new to both web development and 
MapGuide API development, so please excuse me if I don't ask my question the 
correct way but basically....
I want to be able to load a weblayout (created in MG Studio),  when my asp.net 
page loads and query and zoom on the map in the weblayout before the page is 
fully displayed. Basically I will be calling the asp.net page from an 
application passing it parameters for the query functionality.

 I would appreciate it if someone can provide a code snippet. I'm using as my 
base, one of the examples provided on the Autodesk web site. I can provide any 
information regarding the project being used if that will help. Also, other 
than the PDF's provided my Autodesk are there any helpful resources for 
developers?

Here's the code when the page loads that loads a weblayout:
  MgUserInformation userInfo = new MgUserInformation("Administrator", "admin");
    MgSite site = new MgSite();
    site.Open(userInfo);

    String sessionId = site.CreateSession();
    String webLayout = "Library://DevTV/HelloWorld.WebLayout";


'Need help with API to query and zoom'



Then the layout is passed to the viewer.

<frameset rows="0,*" border="0" framespacing="0">
  <frame />
  <frame src="/mapguide2008/mapviewernet/ajaxviewer.aspx?SESSION=<%= sessionId 
%>&WEBLAYOUT=<%= webLayout %>" name="ViewerFrame" />
</frameset>


Many Thanks,

Nick Aizen



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

Reply via email to