Re: [OpenMap Users] MapMouseListener

From: Don Dietrick <dietrick@bbn.com>
Date: Tue Mar 23 2004 - 10:53:33 EST

On Mar 23, 2004, at 10:35 AM, Sperlongano Brian M NPRI wrote:

>> The MapBean is set up to receive ZoomEvents and CenterEvents, so is
>> usually handled by a MapMouseMode that interprets the MouseEvents to
>> tell the MapBean want to do. The NavMouseMode (and NavMouseMode2)
>> already click to recenter, you can extend them to handle mouse wheel
>> events.
>
> I looked around in the documentation, and I must confess I'm confused
> as to how to do this. Do I have to make use of the MapHandler class
> to do this? Right now I simply use MapBean.

Yep, I'm describing what you would do using the OpenMap app framework.

You can toss the MapBean, MouseDelegator, the MapMouseModes,
LayerHandler and layers into a MapHandler, and they will hook
themselves up. The MouseDelegator can be told which MapMouseMode to be
active.

You might want to check out the developers guide, too, for more
information:

http://openmap.bbn.com/doc/OpenMapDevGuide.pdf

- Don

--
[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 Tue Mar 23 10:54:00 2004

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