Re: [OpenMap Users] Implementing my own layer

From: Don Dietrick <dietrick@bbn.com>
Date: Tue Jan 28 2003 - 00:04:24 EST

The behavior of MouseEvents, as they trickle down through the layers,
depends on the layers above it. If they choose to consume all
MouseEvents, the layers below them won't receive any notifications. It
also may depend on the MouseMode - they are free to ignore consumption
notifications from layers - but they usually don't unless they are
modified to do so.

So, I'd check to see what layers are above yours, and if they are being
selfish with the event. I think LocationLayers are selfish, and
provide a pop-up for mouse clicks not on any of their graphics.

- Don

On Monday, January 27, 2003, at 12:35 AM, Luke A. Catania ((TEC))
wrote:

> I am implementing my own layer by extending OMGraphicHandlerLayer and
> implementing MapMouseListener. I notice though that when I click on
> any of
> my objects which I have stored info on, the click event is only
> recognized
> if move my layer to the top.
> When experimenting with the DemoLayer, I notice the objects in that
> layer
> are recognized no matter what order they sit in. I guess it makes
> sense to
> make it necessary to have a layer on top if you want info from it since
> there could be many layers that may have info and objects may overlap
> one
> another, but why does the DemoLayer let you select from it no matter
> what
> order it is in.
> Luke
>
> --
> [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 Tue Jan 28 00:05:09 2003

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