[Mapserver-users] Re: mapplet
Steve Lime
steve.lime at dnr.state.mn.us
Fri Dec 20 12:55:24 PST 2002
You have to define a function like:
function mapplet_mouse_moved(name, x, y) {
var mapx, mapy;
// x and y are in pixel coordinates and need to be converted to map
coordinates here
// how you do that depends on if you're using map templates or
something like LandView
// that only refreshes the page
window.status = mapx + "," + mapy;
}
Set the verbose parameter for the applet to true and the applet will
call this function as the
mouse is moved over the applet.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Jim Burnett <r00t at ntelos.net> 12/20/02 01:44PM >>>
Thanks for the reply Steve. I got it working.
Another question,
How do I use the verbose parameter with mapplet ? How is the javascript
function to handle this set up?
-jim
Steve Lime wrote:
>It can be whatever source you'd like as long as the image type can be
>handled by the java code.
>
>Steve
>
>Stephen Lime
>Data & Applications Manager
>
>Minnesota DNR
>500 Lafayette Road
>St. Paul, MN 55155
>651-297-2937
>
>
>>>>kenboss <kenboss at dilbert.dnr.state.mn.us> 12/19/02 15:10 PM >>>
>>>>
>>>>
>Jim--
>
>I would think it should work, but to be totally honest, I don't know.
>I'm
>cc'ing a couple of people who are likelier to know off the top of
their
>heads.
>Sorry I can't be of more help.
>
>--Ken
>
>
>
>>Date: Thu, 19 Dec 2002 13:40:05 -0500
>>From: Jim Burnett <r00t at ntelos.net>
>>User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0)
>>
>>
>Gecko/20020605
>
>
>>X-Accept-Language: en-us, en
>>MIME-Version: 1.0
>>To: kenboss at dilbert.dnr.state.mn.us
>>Subject: mapplet
>>Content-Transfer-Encoding: 7bit
>>
>>Hey,
>>I tried this ,but I want to make sure its possible before I give me
>>
>>
>self
>
>
>>a headace over it. In mapplet, can I specify a .php or .cgi file as
my
>>
>>
>
>
>
>>image so that I can integrate with php mapscript etc etc...Or does it
>>HAVE to be a jpeg or gif ?
>>
>>-jim
>>
>>
>>
>>
>
>
>
>
>
>
More information about the MapServer-users
mailing list