Changes between Version 3 and Version 4 of maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout


Ignore:
Timestamp:
03/14/09 06:52:52 (16 years ago)
Author:
ksgeograf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout

    v3 v4  
    4141con.SaveResourceAs(weblayout, tempid)
    4242
    43 'Open the viewer, and use the temporary layout, since the map only exists in the
     43'Open the viewer, and use the temporary layout, since the layout only exists in the
    4444'current session, we must use that session, and NOT supply username/password
    4545Response.Redirect("/mapguide/ajaxviewer/?LAYOUT=" & Server.UrlEncode(tempWebLayout) & "&SESSION=" &  Server.UrlEncode(con.SessionID), true)
     
    4848(C#)
    4949{{{
    50 import OSGeo.MapGuide.MaestroAPI;
     50using OSGeo.MapGuide.MaestroAPI;
    5151...
    5252
    5353//Read the setup, either from QueryString, Form, Cookies or hardcoded values
    54 string username As = Request.Params("USERNAME") == null ? "Anonymous" : Request.Params("USERNAME");
     54string username = Request.Params("USERNAME") == null ? "Anonymous" : Request.Params("USERNAME");
    5555string password = Request.Params("PASSWORD") == null ? "" : Request.Params("PASSWORD");
    5656string layout = Request.Params("LAYOUT") == null ? "Library://MyLayout.WebLayout" : Request.Params("LAYOUT");
     
    6060//Setup connection
    6161Uri host = new Uri("http://localhost/mapguide/mapagent/mapagent.fcgi");
    62 ServerConnectionI conn = new HttpServerConnection(host, username , password, locale, True);
     62ServerConnectionI con = new HttpServerConnection(host, username , password, locale, true);
    6363
    6464'Obtain the weblayout and map
     
    7878con.SaveResourceAs(weblayout, tempid);
    7979
    80 //Open the viewer, and use the temporary layout, since the map only exists in the
     80//Open the viewer, and use the temporary layout, since the layout only exists in the
    8181//current session, we must use that session, and NOT supply username/password
    8282Response.Redirect("/mapguide/ajaxviewer/?LAYOUT=" + Server.UrlEncode(tempWebLayout) + "&SESSION=" +  Server.UrlEncode(con.SessionID), true);