[mapguide-users] RE: RE: MGOS Application Overlaying on GOOGLE

Andy Morsell amorsell at spatialgis.com
Mon Mar 26 11:10:33 EDT 2007


If the user has Google Earth installed, it is associated with files of type
.kml and .kmz so will open automatically if you are providing them a link to
a mapagent URL that is generating Google Earth content.  You can also append
USERNAME and PASSWORD parameter to any mapgent request.  See the full
example below.

http://mapguide.spatialgis.com/mapguide/mapagent/mapagent.fcgi?OPERATION=GET
MAPKML&VERSION=1.0.0&FORMAT=KML&DPI=96&MAPDEFINITION=Library%3A%2F%2FSamples
%2FSheboygan%2FMaps%2FSheboygan.MapDefinition&USERNAME=Anonymous&PASSWORD=


Andy 

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Dhirendra Kumar
Sent: Sunday, March 25, 2007 10:42 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] RE: RE: MGOS Application Overlaying on GOOGLE


Hi JasonBirch,

Thankyou for your replay, But when user will click on link then MapAgent
should be not display and automatically redirect to Google earth, This is my
client requirement. So if you have any example or source code in PHP then
please send me, and  give me detail information about how to send full
session with user ID and Password, That redirect to directly Maps on Google
earth. I am waiting your replay........................................

Thanking you
Dhirendra Kumar

JasonBirch wrote:
> 
> Dhirendra Kumar wrote:
> -------------------------
> when i want to see my maps on google earth then every time i have to 
> open mapagent and manually click on Subbmit button. [snip] i want  to 
> know mapagent  generate .KML file in which place and by default which 
> name
> -------------------------
> 
> Hi,
> 
> MapGuide generates the KML dynamically, and does not store it to disk. 
> You could potentially intercept it in a script and save it to disk, 
> but it's all based on the user's current view, so it might not be too
useful.
> 
> I think you have a couple options.  First, you could write a simple 
> PHP script that establishes a session and then does a redirect to the 
> MapAgent link with the Session ID attached.  It'd look something like
this:
> 
> &SESSION=9ee8c298-ffff-ffff-8001-00e02983d68a_en
> 
> Another option would be to just use an unpriveledged user in the 
> MapAgent
> link:
> 
> &USERNAME=Anonymous&PASSWORD=
> 
> I hope that at some point we can add the same kind of built-in userid 
> and password along with a "published" flag like we have for WMS and 
> WFS services.  As it stands, the user has really limited ability to 
> keep the link to a MapGuide site in their Google Earth menu.  Even 
> with the embedded username and password, a SESSION is generated and 
> embedded in the Layer and Features calls.
>  
> Jason
>  
> 
>  
> _______________________________________________
> 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/MGOS-Application-Overlaying-on-GOOGLE-tf3446638s16610.
html#a9667959
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





More information about the mapguide-users mailing list