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

Andy Morsell amorsell at spatialgis.com
Wed Mar 28 12:59:05 EDT 2007


Google Maps will allow KML overlays to some degree.  The KML data that
MapGuide is generating via the mapagent KML operations are intended for use
in Google Earth only since it is actually creating a Google Earth folder,
uses regions, etc.  It is possible to develop some custom programming using
the MapGuide and FDO API's to produce your own KML.  And, you can make it
work in Google Maps.  An example is:
http://maps.google.com/maps?f=q&hl=en&q=http://mapguide.spatialgis.com/mapgu
ide/GoogleEarthDemo/GE_Spokane_Parcels.aspx%3FfileFormat%3DKML%26BBOX%3D-117
.4423,47.665,-117.441,47.666&layer=&ie=UTF8&z=17&om=1

Note that while this works great in Google Earth, the formatting gets a
little messed up in Google Maps and I have not taken the time to figure out
why since I do not use it this way.  Your better options in Google Maps are
to use placemarks and WMS overlays.  There is some information on how you
can get started here:
http://mapguide.spatialgis.com/mapguide/GoogleMapsDemo/


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: Tuesday, March 27, 2007 11:36 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] RE: RE: MGOS Application Overlaying on GOOGLE


Hi Andy Morsell,

Thankyou for your replay, Now i can see my map on google earth with their
right position. Is it possible to view this map directly on google map
website ? because, if client's  computers has not installed Google earth
then they can't see this feature. So for that resion i am asking to you
MapGuide integration with Google map website. Help me I am waiting
..............................................................

Thankyou in Advance
Dhirendra Kumar






Andy Morsell wrote:
> 
> You can build a web interface that has hyperlinks, or buttons, or 
> whatever that the users interact with.  Behind the scenes, you are 
> sending them to the full mapagent URL's.
> 
> 
> 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: Saturday, March 24, 2007 4:39 AM
> To: mapguide-users at lists.osgeo.org
> Subject: [mapguide-users] RE: MGOS Application Overlaying on GOOGLE
> 
> 
> Hi Andy Morsell,
> 
> Thankyou for your valuable replay, according to you, first i 
> uninstalled MapGuide 1.0.2 and install 1.1.0 and as per your 
> suggestion open file http://com008:8008/mapguide/MapAgent/index.html/ 
> and  click on KML option and GetMapKml and fillup all information, 
> when i click on subbmit button then my maps automatically overlap on 
> Google earth with their right projection ( So i am verry happy to see 
> this). But my problem is, when i want to see my maps on google earth 
> then every time i have to open mapagent and manually click on Subbmit 
> button. But my client want to click on one link (not manually) and 
> google earth display map automatically. So for that resion i want  to 
> know mapagent  generate .KML file in which place and by default which 
> name (i want to give name manuall then what i have to do).
> So
> please suggest me. i am waiting
> ........................................................, thankyou 
> once again for your valuable information.
> 
> Thanking you
> Dhirendra Kumar
> 
> 
> 
> 
> Andy Morsell wrote:
>> 
>> MapGuide Open Source 1.1.0 has the capability "out of the box".  
>> There is no documentation, but it's pretty straight-forward to 
>> utilize by issuing operation requests directly against the mapagent.  
>> To try it out, load up the mapagent test page 
>> (http://YOURSERVERNAME:PORT/mapguide/MapAgent/index.html).  Then, in 
>> the upper-left pane click on Kml.  Then, go to the GetMapKml, 
>> GetLayerKml, or GetFeaturesKml options.  Here's the results of 
>> issuing the default operations from that interface:
>> 
>> http://YOURSERVERNAME:PORT/mapguide/mapagent/mapagent.fcgi?OPERATION=
>> G
>> ETMAPK
>> ML&VERSION=1.0.0&FORMAT=KML&DPI=96&MAPDEFINITION=Library%3A%2F%2FSamp
>> l es%2FS heboygan%2FMaps%2FSheboygan.MapDefinition
>> 
>> http://YOURSERVERNAME:PORT/mapguide/mapagent/mapagent.fcgi?OPERATION=
>> G
>> ETLAYE
>> RKML&VERSION=1.0.0&FORMAT=KML&DPI=96&DRAWORDER=0&LAYERDEFINITION=Libr
>> a
>> ry%3A%
>> 2F%2FSamples%2FSheboygan%2FLayers%2FParcels.LayerDefinition&BBOX=-87.
>> 7
>> 398334
>> 220901%2C43.73822699224595%2C-87.72068284176505%2C43.75068777906662&W
>> I
>> DTH=79
>> 6&HEIGHT=717
>> 
>> 
>> http://YOURSERVERNAME:PORT/mapguide/mapagent/mapagent.fcgi?OPERATION=
>> G
>> ETFEAT
>> URESKML&VERSION=1.0.0&FORMAT=KML&DPI=96&DRAWORDER=0&LAYERDEFINITION=L
>> i
>> brary%
>> 3A%2F%2FSamples%2FSheboygan%2FLayers%2FParcels.LayerDefinition&BBOX=-
>> 8
>> 7.7398
>> 334220901%2C43.73822699224595%2C-87.72068284176505%2C43.7506877790666
>> 2
>> &WIDTH
>> =796&HEIGHT=717
>> 
>> There's also ways to do cool KML things via the MGOS and FDO API's, 
>> but these are obiously more advanced.  For an example, see these pages:
>> 
>> http://earth.nanaimo.ca/
>> http://www.spatialgis.com/demo.html
>> http://mapguide.osgeo.org/livegallery.html
>> 
>> 
>> Andy Morsell, P.E.
>> Spatial Integrators, Inc.
>> http://www.SpatialGIS.com
>> 
>> -----Original Message-----
>> From: mapguide-users-bounces at lists.osgeo.org
>> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Paul 
>> Spencer
>> Sent: Friday, March 23, 2007 6:12 AM
>> To: MapGuide Users Mail List
>> Subject: Re: [mapguide-users] MGOS Application Overlaying on GOOGLE
>> 
>> Unfortunately I don't know anything about this.  Perhaps someone else 
>> will jump in here?
>> 
>> Paul
>> 
>> On 23-Mar-07, at 2:29 AM, Dhirendra Kumar wrote:
>> 
>>>
>>> Hi Paul,
>>>
>>> Thank you for replay, But i have no idea how to use MapGuide as a 
>>> KML server. If you have any information then please give me.
>>>
>>> Thankyou in advance
>>> Dhirendra kumar
>>>
>>>
>>> Paul Spencer-5 wrote:
>>>>
>>>> Dhirendra,
>>>>
>>>> This is probably a difficult thing to do ... I think you can use 
>>>> MapGuide as a KML server for Google Earth.  I'm not sure if Google 
>>>> Maps can load KML directly yet.
>>>>
>>>> You can also look at using OpenLayers (http://www.openlayers.org) 
>>>> to build your web client since it can use Google Maps API to load 
>>>> Google maps and then overlay other layers (using WMS for instance).
>>>> You could probably launch an OpenLayers app from MapGuide, but 
>>>> again, it's not going to be trivial to set up.
>>>>
>>>> Cheers
>>>>
>>>> Paul
>>>>
>>>>
>>>> On 22-Mar-07, at 8:06 AM, Dhirendra Kumar wrote:
>>>>
>>>>>
>>>>> Hi All,
>>>>>
>>>>> I devloped GIS Election Application using MGOS and now i want to 
>>>>> overlaying my application on Google. Requirment is when user will 
>>>>> click on link of right pane of Ajaxviewer then map's are 
>>>>> displaying in central window get overlapped on GOOGLE with their 
>>>>> right Position and preserve shape.
>>>>> But i
>>>>> have no idea about this, So Any Boady Please help me. I am 
>>>>> waiting...........................................................
>>>>>
>>>>> Thankyou in advance
>>>>> Dhirendra Kumar
>>>>> --
>>>>> View this message in context: http://www.nabble.com/MGOS- 
>>>>> Application-Overlaying-on-GOOGLE-tf3446638s16610.html#a9611820
>>>>> 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
>>>>
>>>> +-----------------------------------------------------------------+
>>>> |Paul Spencer                          pspencer at dmsolutions.ca    |
>>>> +-----------------------------------------------------------------+
>>>> |Chief Technology Officer                                         |
>>>> |DM Solutions Group Inc                http://www.dmsolutions.ca/ |
>>>> +-----------------------------------------------------------------+
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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#a9629094
>>> 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
>> 
>> +-----------------------------------------------------------------+
>> |Paul Spencer                          pspencer at dmsolutions.ca    |
>> +-----------------------------------------------------------------+
>> |Chief Technology Officer                                         |
>> |DM Solutions Group Inc                http://www.dmsolutions.ca/ |
>> +-----------------------------------------------------------------+
>> 
>> 
>> 
>> 
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
>> 
>> _______________________________________________
>> 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#a9649073
> 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
> 
> 
> 
> _______________________________________________
> 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#a9707139
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