[OpenMap Users] Panning with MapBean

From: Denis Balazuc <denis.balazuc@ni2.ca>
Date: Mon Apr 05 2004 - 12:14:38 EDT

Hello Group

I am trying to implement a "pan" function where the user would pan the
map by dragging the mouse around (the map bean would pan according to
the mouse direction mostly, but also the "speed" of the user movement).

So, after calculating the angle (direction) and distance, I re-center
the map bean's current projection (just like it is done in the Proj
class in the pan(float az, float c) method).
However, the map bean flickers a lot and the panning is not really
"smooth" - recentering makes the whole thing blink.

Does anyone has any suggestion on how I can make a "smoother" panning ?
(image buffering, something else than recentering the current
projection, etc.?)

Also, I am not a geometry expert and I am not sure how to calculate the
distance in "arc degrees" in order to accomodate either pan(float,
float) or
GreatCircle.spherical_between() (which is the method I use to compute
the new center of the projection while panning),
given a 2D-vector (expressed either in screen coordinates (X,Y) or
LatLonPoint(s)) that represents the movement of the mouse)

Any answer or enlightment of any kind will be greatly appreciated.
Thanks a lot.

Denis

--
[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 5 12:15:20 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT