[mapguide-users] Programmatically using GetMapKML, GetLayerKML
and GetFeatureKML in .NET
Jackie C Ng
jumpinjackie at gmail.com
Wed Apr 16 21:02:42 EDT 2008
The key to using the KML service programmatically is that you need to have
the runtime map (ie the MgMap object), that you either:
- Create() from a Map Definition resource id
OR
- Open() from a runtime map name
Once you have an MgMap instance, the rest of the parameters should be
self-explanatory.
- Jackie
DevMan wrote:
>
> Hello All,
>
> I am a newbiew to Mapguide 2.0 OS API and I would be very grateful, if
> someone could plz help me out on this.
>
> All I need to do is to use the GetMapKML, GetLayerKML and GetFeatureKML
> programmatically in a C# aspx page. The purpose is to generate a KML feed
> for Google Earth on the fly.
>
> The GetMapKML in MapAgent and also the link like
> http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GetMapKml&VERSION=1.0.0&MAPDEFINITION=Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition&FORMAT=KML&LOCALE=en
>
> works fine, but I need to implement it on a separate aspx page, which
> would then return the KML.
>
> I know that the GetMapKMl etc. return a ByteReader, but can't really put
> in the parameters in these GetKML methods.
>
> Its really urgent, so If someone could please post a functional code that
> I could possibly implement or modify to my needs.
>
> Many thanks in advance.
>
> Ajay
>
>
>
-----
http://themapguyde.blogspot.com
http://www.linkedin.com/in/jackieng
--
View this message in context: http://www.nabble.com/Programmatically-using-GetMapKML%2C-GetLayerKML-and-GetFeatureKML-in-.NET-tp16697335s16610p16736753.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list