[mapserver-users] Re: Dynamic data loading using Google maps andMapserver

Jim Strevinas voas_acc at hotmail.com
Sat May 2 07:55:16 PDT 2009


A beautiful example that uses the Google Maps API is:

http://www.dyasdesigns.com/geoxml/gmlusa.htm

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

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090502/42686e8c/attachment.htm>


More information about the MapServer-users mailing list