[Mapserver-users] Problems in Cursor Coordinate Display on Status Bar Using Mapplet

Richard Greenwood Rich@GreenwoodMap.com
Mon, 26 May 2003 15:41:24 -0600


--=======407641A8=======
Content-Type: text/plain; x-avg-checked=avg-ok-2F5A5C15; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

At 02:42 PM 5/26/2003 -0500, you wrote:

>I have been working my way through the tutorials to learn how to implement
>the MapServer and have hit a snag with the Mapplet. I can get it to work OK
>with the zoom box but I cannot get it to display the cursor coordinates. I
>have looked at the past messages on this listserv and tried to follow their
>instructions to no avail, and have also consulted the Mini-HowTo about the
>mapplet to see how to do this - still no success.
>
>So, this is what I've done:
>
>1) I put in the Javascript function: mapplet_mouse_moved(name,x,y) that was
>described in an earlier message, and couldn't get a cursor display,
>2) the Mapplet Mini-HowTo mentions a different function: mapOver(x,y) , I
>put that in and also didn't get a display of the cursor coordinates,

For starters, I think you need to declare 'verbose':
<param name='verbose' value='false'>

I forget which function name was used in mapplet (check the Java source). 
Steve Lime has developed a newer version of mapplet called jBox. In jBox 
the function you want is mousemove_handler(name, x, y). You can fetch jBox 
and some documentation at:
http://www.greenwoodmap.com/mapserver/jBox/

Rich


Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich@GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com 

--=======407641A8=======--

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users