Hi Chris,
I think I remember looking at this a while ago, and there was some
problem with a mismatch in units. The NavigatePanel method wants some
number that is basically a percentage of screen to pan, and the
projection wants decimal degrees. I think getting the NavigatePanel to
figure out how to calculate decimal degrees for a pan amount was
something I didn't have time for.
NavigatePanel needs to become a ProjectionListener so it can use the
latest projection to figure out how many decimal degrees in a certain
direction the map should be moved, based on a current screen width
percentage.
- Don
On Thursday, April 18, 2002, at 03:47 PM, Chris Hopkins wrote:
>
> Hi all -
>
> I'm trying to set the default behavior for panning when using the
> provided OMToolSet object. I have a customized frame I'm using and
> can see when the OMToolSet object gets added to the bean context.
> I can then get access to the NavigatePanel object inside of it but
> calling setPanFactor has no effect. When I looked into the code,
> the values for panning are hard coded in the actionPerformed
> method and the panfactor is not taken into account.
>
> Given this, is there any way around it so I can customize how much
> the screen pans on each mouse click? Worst case scenario, I'll
> write my own panner but it would be nice to use the one provided.
>
> Thanks,
> Chris
>
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Mon Apr 22 16:17:07 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT