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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users