[mapguide-users] How to Load Runtime map in mapviewerajax

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Mon Dec 1 05:26:20 EST 2008


You can't.
You can only reference items in the repository.
You can create a new MapDefinition with:
MaestroAPI.MapDefinition mdef = new MaestroAPI.MapDefinition();

You can then save that under an ID (either Library (permanent) or 
Session (temporary)), and reference it from a WebLayout.
A MapDefinition is not the same as a Runtime Map.

You can open the browser with any WebLayout using an URL like this:
http://servername/mapguide/ajaxviewer/?WEBLAYOUT=...resourceId for your 
WebLayout...&USERNAME=Anonymous&PASSWORD=

If you want to, you can redirect your ASP.Net page to the url like:
Response.Redirect("/mapguide/ajaxviewer/?WEBLAYOUT=...resourceId for 
your WebLayout...&USERNAME=Anonymous&PASSWORD=");

Regards, Kenneth Skovhede, GEOGRAF A/S



padmini godavarthi skrev:
> Hi thanks for u r reply. But i dont want to give path for the map 
> definition like layout.Map.ResourceId = 
> "Library://mymap.MapDefinition"; i want to create it dynamically in 
> the code .After creating weblayout how to call it in the ajaxviewer 
> sample application. If u know this plz help me
> ------------------------------------------------------------------------
> View this message in context: Re: How to Load Runtime map in 
> mapviewerajax 
> <http://www.nabble.com/How-to-Load-Runtime-map-in-mapviewerajax-tp20704038p20768314.html>
> Sent from the MapGuide Users mailing list archive 
> <http://www.nabble.com/MapGuide-Users-f14845.html> at Nabble.com.
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081201/aa58f99e/attachment.html


More information about the mapguide-users mailing list