Re: [OpenMap Users] Dragging and Scrolling

From: Don Dietrick <dietrick@bbn.com>
Date: Fri Sep 26 2003 - 18:58:59 EDT

Hi Bryan,

On Friday, September 26, 2003, at 10:44 AM, Bryan Tedesco wrote:

> Hello,
>
> I am trying to get the map to move when I am dragging an object
> outside the boundaries.  So if the map is focused on theUSthat I can
> drag an object toEuropeor something like that.  Is this possible?  I
> am using a dNdCatcher similar to the beanBoxDndCatcher and I can’t
> seem to find anything that will be useful.  Any ideas?
>
> I can capture the point at which it exits the mapbean in the layer
> mouselistener when I’m not dragging, but I can’t figure out what to
> add to get it to work while dragging. 

I don't think I'd watch where it exits, I'd watch the border for
dragging. If either mouse coordinate gets < 3, or y < height-3 or x <
width -3, get the MapBean (source of the MouseEvent) and recenter the
projection to projection.inverse(x, y).

Hope this helps,

Don

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Fri Sep 26 18:59:32 2003

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