[mapguide-users] queries to a G Maps Layer with Fusion and MG

Kori Maleski kori.maleski at gmail.com
Tue Mar 16 12:14:19 EDT 2010


You will have to make a widget that utilizes the Ajax Search API (for
Google).

Have it return Lat/Long position as per Google documentation and then
execute a zoom to view function in javascript.

http://code.google.com/apis/ajaxsearch/

Then add a marker to the Google Layer.

var point = latlng;
var mgLayers = mapWidget.oMapOL.getLayersByClass('OpenLayers.Layer.Google');
mgLayers[0].mapObject.addOverlay(new GMarker(point));




Cheers,

Kori Maleski




On Tue, Mar 16, 2010 at 4:25 AM, Jose Cerrejon <gis at mapas-sll.com> wrote:

>
> I'm tried with success this
> http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays tutorial
>  about
> Using MapGuide Overlays with Commercial Map Service Layers.
>
> I would like to know if I can make a widget to do queries to the Google
> Maps/Bing/Yahoo layer, or if it is a blind layer. For example, find streets
> (with the Maps API) and mark them with a push pin, ...
>
> Any example would be appreciated :)
>
> Thks in advanced!
> --
> View this message in context:
> http://n2.nabble.com/queries-to-a-G-Maps-Layer-with-Fusion-and-MG-tp4742997p4742997.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100316/b8c7be69/attachment.html


More information about the mapguide-users mailing list