[Mapserver-users] JBox - Getting started - Small problem
Richard Greenwood
rich at greenwoodmap.com
Fri Jan 23 23:21:24 PST 2004
Wim Blanken (PI) wrote:
>Hello Steve,
>
>The Jbox applet that I use has as far as I know not the redraw parameter in
>it's function.
>If you look at the java sourcecode from the jbox you can download from the
>mapserver site you can check this.
>I see that the documentation still uses the redraw parameter, maybe Richard
>has an Answer to this question as I am not very good at java and the applet
>was modified by him to allow for linedrawing and real panning.
>
>Wim Blanken
>The Netherlands
>
>----- Original Message -----
>From: "Steve McCrone" <ms57 at streamyx.com>
>To: "Wim Blanken (PI)" <wim.blanken at planet.nl>
>Sent: Saturday, January 24, 2004 5:03 AM
>Subject: Re: [Mapserver-users] JBox - Getting started - Small problem
>
>
>
>
>>Hi again Wim,
>>
>>Well, as I mentined befoer, I did use your jBox and the zoom functioned
>>worked. However, I tried adding the following If statement to the
>>
>>
>javascript
>
>
>>function and the value of "redraw" is undefined -
>>
>>function setbox_handler(name, minx, miny, maxx, maxy, redraw) {
>> document.mapserv.imgbox.value = minx + " " + miny + " " + maxx + " " +
>>maxy;
>> document.mapserv.imgxy.value = minx + " " + miny;
>> if (redraw) {
>> document.mapserv.submit();
>> }
>> alert(redraw) //redraw is undefined
>> }
>>
>>Therefore, I cannot update the map automatically - any ideas why?
>>
>>
>>
You will never see redraw defined as you have it because it will submit
ifd it is defined. First, move your slert before submit() to see if it
is bing set, Second, force it true and see if you submit() works. If
your form name is incorrect, it won't submit.
Rich
--
Richard Greenwood
www.greenwoodmap.com
More information about the MapServer-users
mailing list