getting map coordinates from mouse click

Sandeep Kumar Jakkaraju sandeepkumar.jakkaraju at GMAIL.COM
Fri Oct 6 10:04:59 EDT 2006


Hi

a similar problem ...

I want to know the img_x and img_y  for a corresponding MAPLON, MAPLAT....

Thanks
sandeep



On 10/6/06, Pietro Giannini <pgiannini at bytewise.it> wrote:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061006/4f5bec60/attachment.html


More information about the mapserver-users mailing list