getting map coordinates from mouse click

Pietro Giannini pgiannini at BYTEWISE.IT
Fri Oct 6 08:30:33 EDT 2006


Hi list,

a simple question:
in php and mapscript 4.8.3, how can I get the map coordinates of the mouse
click?

Via the php variables (_POST or _GET), a clik on the map image can only
return a couple of PIXEL coordinates (e.g $_GET['img_x'] and
$_GET['img_y'], where "img" is the name of image input on the html form).
MAPLON and MAPLAT (cgi variables) are the lon and lat coords of the
clicked point, but I don't know how to read this variables in the
php/mapscript environment.

Any help?

___________________________
      Pietro Giannini
  Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E



More information about the mapserver-users mailing list