In each of your layers, implement the MapMouseListener. You may also
need to implement the following methods as follows:
_at_Override
public MapMouseListener getMapMouseListener() {
return this;
}
public String[] getMouseModeServiceList() {
return new String[] {
com.bbn.openmap.event.SelectMouseMode.modeID
};
}
NOTE, you should return the map mouse mode you are using for the layer
(if you are using something other than, or in addition to,
SelectMouseMode.
~Chris
-----Original Message-----
From: SlikWilly [mailto:rbenito_at_mitre.org]
Sent: Wednesday, November 12, 2008 10:28 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] How do I handle mouse events with multiple
layers?
Hi,
I have a map with icons on multiple layers and the icons respond to a
mouse click event. Right now, only the top layer responds to mouse
events.
How do I get the bottom layers to respond to mouse events too?
Thanks!
--
View this message in context:
http://www.nabble.com/How-do-I-handle-mouse-events-with-multiple-layers-
-tp20462611p20462611.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe
openmap-users"]
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Nov 12 2008 - 11:15:49 EST