jbox and panning
Arnold, Micheal B.
Micheal.Arnold at NSCORP.COM
Mon Dec 6 09:43:29 PST 2004
Thanks Richard. Any idea how I would calculate the map extents using
javascript? I know that the setbox_handler function has the minx, miny,
maxx, and maxy variables, but I can't figure out how to calculate the
extents.
Thanks again,
Mike Arnold
micheal.arnold at nscorp.com
-----Original Message-----
From: Richard Greenwood [mailto:richard.greenwood at gmail.com]
Sent: Saturday, December 04, 2004 10:06 AM
To: Arnold, Micheal B.
Cc: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] jbox and panning
On Fri, 3 Dec 2004 14:23:49 -0500, Arnold, Micheal B.
<Micheal.Arnold at nscorp.com> wrote:
>
>
>
> Has anybody ever had a problem like this:
>
>
>
> I have implemented image swapping with jBox. When I try panning,
everything
> works fine the first time I move my map. The second (and subsequent)
> attempts fail. When I try to pan, the map jumps to what seems like a
random
> place. I am having similar problems trying to zoom in on my map.
>
>
>
> It seems like the problem might be with imgxy or imgbox, but I can't
figure
> out where the disconnect is. I am not sure if something needs to be reset
> since I am not re-submitting the page.
>
>
>
> Can anybody offer any suggestions?
>
>
>
> Thanks,
>
>
>
> Mike Arnold
>
> micheal.arnold at nscorp.com
Each time you swap images, you are chaning your map extents. Are you
keeping track of that on the client? When you request a whole new pae,
mapserver calculates the new map extent and usually you save that in
hidden variables on the page. Then use that extent, combined with
user-input pixels coordinates to request the next map.
However, when you image swap, you need to calculate and keep track of
the map extent on the client side.
Regards,
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
More information about the MapServer-users
mailing list