Re: [OpenMap Users] Multiple LocationLayers with Popup Menus

From: William M. Barber <>
Date: Thu, 1 Feb 2007 14:09:03 -0700 (MST)

Hi Sunny,

don't know if anyone has responded to this yet.

It sounds as if your top-most layer is consuming the mouse events.
You need to tell either the mouse mode or the mouse listener methods not to
consume events. There is more than one way to do this I think, depending on your
event needs. Look at the mouse*() methods in MapMouseListener, and at
setConsumeEvents() in AbstractMouseMode.

Hope this helps, Bill

On Tue, 30 Jan 2007, Lin, Sunny (Shih-Hung) wrote:

> Hi,
> I implemented multiple LocationLayers, each with a LocationHandler to
> allow pup-up menu for more information of Locations in the layer. They
> work fine independently until I put them together. It seems only the
> top-most enabled layer can get the mouse event. I have to turn off a
> top layer in order to get detail information of the layer below. Would
> someone please tell me what I have done wrong and how to fix it?
> Sunny Lin

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Feb 01 2007 - 17:07:28 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT