[mapguide-users] Dynamic MapDefinition and Google Earth

Kenneth, GEOGRAF A/S ks at geograf.dk
Tue Jan 1 11:20:12 EST 2008

The full path to a resource in the session repository can be constructed 
like this:
"Session:" + sessionID + "//" + resourceid


Regards, Kenneth, GEOGRAF A/S

Michael L. skrev:
> Hello,
> I'd like to publish various layers from my map to Google Earth. Therefore I
> try to create
> a dynamic map where all layers will be saved. This works so far, but for
> some
> reasons I'm not able to export my map to KML. 
> The problem is what do I have to enter for MAPDEFINITION? 
> header("Location:
> http://localhost/mapguide2008/mapagent/mapagent.fcgi?OPERATION=GetMapKml&VERSION=1.0.0&MAPDEFINITION=[?????????]&FORMAT=KML&LOCALE=de");
> The static path 'Library://map/town_google.MapDefinition' is not working
> because the map is only available during the session. I've already tried to
> use the MgSessionID, as well.
> But then I got the Error, that this is no String.
> It would be great if someone could help me.
> Thanks in advance.
> Michael

More information about the mapguide-users mailing list