[mapguide-users] How to Load Runtime map in mapviewerajax
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Fri Nov 28 04:28:25 EST 2008
If you want to create a WebLayout using the MaestroAPI, simpy do:
MaestroAPI.ServerConnectionI con; //You need this from the
code in the example
MaestroAPI.WebLayout layout = new MaestroAPI.WebLayout();
layout.Map = new MaestroAPI.MapType();
layout.Map.ResourceId = "Library://mymap.MapDefinition";
con.SaveResourceAs(layout, "Library://mylayout.WebLayout");
You might also want to add some buttons and set other options.
Regards, Kenneth Skovhede, GEOGRAF A/S
padmini godavarthi skrev:
> Hi,
> Thanks for u r reply.
> Actually i have created one mgp in mapguide maestro.
> so i placed it in the ajaxviewer sample application as
> weblayout="Library://Layout/maplayout.weblayout.
> It works fine
>
> Now i want to create it by coding using (Maestroapi.dll) dynamically so i
> saw a link
>
> http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/AddInitialLayer
>
> but i didnt get the code
>
>
> So plz tell me the procedure sothat i will proceed further development
>
>
> Regards,
> Padmini
>
>
>
> Maksim Sestic wrote:
>
>> Then check the last few lines of this example:
>>
>> http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/AddInitialLay
>> er
>>
>> ...but I suggest you reading a bit about MeastroAPI in general:
>>
>> http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI
>>
>> Regards,
>> Maksim Sestic
>>
>> -----Original Message-----
>> From: mapguide-users-bounces at lists.osgeo.org
>> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of padmini
>> godavarthi
>> Sent: Thursday, November 27, 2008 02:22
>> To: mapguide-users at lists.osgeo.org
>> Subject: RE: [mapguide-users] How to Load Runtime map in mapviewerajax
>>
>>
>> Hi,
>> Thanks for u r reply.
>> I followed the given url
>>
>>
>>
>> http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/RuntimeMap
>>
>>
>>
>> i got an session id for that. After getting it iam unable to get what to
>> do
>> with that?
>>
>>
>> can u plz tell me the procedure.
>>
>>
>>
>> Regards,
>> padmini
>>
>> Maksim Sestic wrote:
>>
>>> You might check this out first:
>>>
>>> http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/Runtime
>>> Map
>>>
>>> I guess it does exactly what you need.
>>>
>>> Regards,
>>> Maksim Sestic
>>>
>>> -----Original Message-----
>>> From: mapguide-users-bounces at lists.osgeo.org
>>> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of padmini
>>> godavarthi
>>> Sent: Wednesday, November 26, 2008 17:15
>>> To: mapguide-users at lists.osgeo.org
>>> Subject: [mapguide-users] How to Load Runtime map in mapviewerajax
>>>
>>>
>>>
>>> Hi,
>>> iam using Mapguide opensource 2.0 (with .net 2.0+IIS 5.1).
>>> Now i want to load a runtime map (using MaestroAPI.dll) in to
>>> mapviewer ajax application (in .net)
>>>
>>> Plz tell me the procedure for
>>>
>>> 1) How to load the runtime map?
>>> 2) What are the steps i have to follow?
>>>
>>> If anybody knows plz help me
>>>
>>>
>>> Regards,
>>> Padmini
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-Load-Runtime-map-in-mapviewerajax-tp20704
>>> 038p20
>>> 704038.html
>>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>> __________ Information from ESET NOD32 Antivirus, version of virus
>>> signature database 3643 (20081126) __________
>>>
>>> The message was checked by ESET NOD32 Antivirus.
>>>
>>> http://www.eset.com
>>>
>>>
>>>
>>> __________ Information from ESET NOD32 Antivirus, version of virus
>>> signature database 3643 (20081126) __________
>>>
>>> The message was checked by ESET NOD32 Antivirus.
>>>
>>> http://www.eset.com
>>>
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-Load-Runtime-map-in-mapviewerajax-tp20704038p20
>> 712155.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus
>> signature
>> database 3644 (20081126) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>>
>>
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus
>> signature
>> database 3644 (20081126) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.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/20081128/ac05cf06/attachment.html
More information about the mapguide-users
mailing list