[mapserver-users] returning mouse click coordinates to PHP

Frank Koormann frank.koormann at intevation.de
Wed Mar 27 07:29:39 EST 2002


Scott,

* Scott D Cogan (cogansco at msu.edu) [020326 01:22]:
> i have a map up with certain sites mapped as a layer of type POINT.  these
> sites are displayed on the map just fine, but i would like to be able to
> have users click on the actual map and somehow determine, maybe with PHP??
> what coordinates (lat and long) were clicked so that i could bring up
> site-specific info on the site that they click near.  any ideas?  thanks

These coordinates are already sent to your server application when
clicking on the map: IMG in image coordinates (more specific IMG.X and
IMG.Y), see http://mapserver.gis.umn.edu/doc/cgi-reference.html and 
the Itasca Demo http://mapserver.gis.umn.edu/dist/itasca3.5.tar.gz
for more.

However, the QUERY functionality should provide what you need out of the
box. Again see the Itasca Demo and play around with the TEMPLATES.

regards,

        Frank

-- 
Frank Koormann                             <frank.koormann at intevation.de>
 Professional Service around Free Software       (http://intevation.net/)
 FreeGIS Project                                 (http://freegis.org/)



More information about the mapserver-users mailing list