Display coordinate upon a mouse click or duing mouse dragging
Andy Freed
afreed at PDX.EDU
Mon Nov 20 11:19:46 PST 2006
I'm not familiar with the Rosa applet, but in the CGI version, you can
simply place "[mapx], [mapy]" into your page, that should give you the
coordinates that the user last clicked.
In PHP/Mapscript, you can export it in a similar fashion:
$thepoint = ms_newpointObj();
$thepoint->setXY($_POST["map_x"],$_POST["map_y"]);
Andy
Xiaopeng Xiong wrote:
> Hello List,
>
> I wonder how to display the world coordinate when a user clicks on the
> map or drags a rectangle using mouse. I am quite ignorant to this type
> of programming.
>
> I am using Mapserver and Rosa applet. But I can change to other
> configurations if necessary.
>
> Your any suggestions or sample codes are appreciated!
>
>
> Best regards,
> Xiaopeng
More information about the MapServer-users
mailing list