<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
A beautiful example that uses the Google Maps API is:<br><br>http://www.dyasdesigns.com/geoxml/gmlusa.htm<br><br>It makes use of an API plugin called geoxml that can load XML data which can be produced by<br>a WFS server. In the source code, a static GML file is used but a google search shows that it can <br>connect to a live WFS server using the URL. <br>&nbsp;<br>&gt; Date: Sat, 2 May 2009 09:28:01 -0500<br>&gt; From: Steve.Lime@dnr.state.mn.us<br>&gt; To: vsaraf.gmu@gmail.com<br>&gt; Subject: Re: [mapserver-users] Re: Dynamic data loading using Google        maps andMapserver<br>&gt; CC: mapserver-users@lists.osgeo.org<br>&gt; <br>&gt; One way to do that is to construct MapServer queries based on the event<br>&gt; and submit them using AJAX. This site does just that but with OpenLayers:<br>&gt; <br>&gt;   http://www.dnr.state.mn.us/waters/csg/index_copy.html<br>&gt; <br>&gt; Click on the dots and a MapServer query is done behind the scenes. If successful<br>&gt; a little window control is populated, if not, then nothing happens. Simple templates<br>&gt; are used to present the information.<br>&gt; <br>&gt; Steve<br>&gt; <br>&gt; &gt;&gt;&gt; Varun saraf &lt;vsaraf.gmu@gmail.com&gt; 05/01/09 11:54 AM &gt;&gt;&gt;<br>&gt; Hi,<br>&gt; <br>&gt; I just had a look at ImageMap Template on "Output generation"...Can<br>&gt; this be used on google maps to get information pooped up on a<br>&gt; mouseover or mouseclick in tile mode? If not, what is it that I can do<br>&gt; to get a similar result when using Mapserver with google maps?<br>&gt; <br>&gt; Regards,<br>&gt; Varun<br>&gt; <br>&gt; On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf &lt;vsaraf.gmu@gmail.com&gt; wrote:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; I have successfully drawn layers on of google maps as base using<br>&gt; &gt; mapserver. However, I am trying to figure out how to get data<br>&gt; &gt; dynamically displayed on the web page when a user clicks on a certain<br>&gt; &gt; area. For example, I have divided the entire state of virginia into<br>&gt; &gt; many sectors (using a polygon shp file). My requirement is that I want<br>&gt; &gt; data to come up on the map/web page when the user selects a particular<br>&gt; &gt; sector. I know google provides me with an event api for clicking on<br>&gt; &gt; the map but how do I pass this event to mapserver so it can send me<br>&gt; &gt; the label for that sector from the shape file? I need to be able to<br>&gt; &gt; recognize what sector the user has clicked. Is this possible using<br>&gt; &gt; just the mapserv cgi script and a map file or a MapScript has to be<br>&gt; &gt; written/used? Can someone point me in the right direction here? Even<br>&gt; &gt; providing the link for a previous discussion on this topic would help.<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt; Varun<br>&gt; &gt;<br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; mapserver-users@lists.osgeo.org<br>&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>&gt; <br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; mapserver-users@lists.osgeo.org<br>&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br><br /><hr />Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! <a href='http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us' target='_new'>Try it!</a></body>
</html>