Re: [OpenMap Users] returning a layer form a map bean

From: Adrian Lumsden <Adrian.Lumsden@sss.co.nz>
Date: Wed Dec 03 2003 - 14:59:18 EST

Hello Jon,

I did something similar to this with one of my layers. You might want to
create your own mouse mode, MyLocationLayerMouseMode and have it override
ID to, say, "MyLocationMouseMode"; extend LocationLayer to, say,
MyLocationLayer and have it override getMouseModeServiceList() to return
MyLocationLayerMouseMode.ID.

That way your mouse mode should get first crack at the mouse events. It
can then send them on to the MyLocationLayers. Each one of them can decide
whether to consume the event (stop it going on to other MyLocationLayers)
or allow it to pass on to other layers by returning true or false.

Hope that helps.

with regards,

Adrian
_____________________________________________

Adrian Lumsden
Product Specialist
Scientific Software and Systems Limited

Tel: +64 4 917-6680 (direct)
        +64 4 917-6670 (reception)
Fax: +64 4 917-6671
E-mail: Adrian.Lumsden@sss.co.nz

Visit us on the Web at: http://www.sss.co.nz
_____________________________________________

This e-mail passed SSS's content security scan.
It is covered by the confidentiality clauses at
http://www.sss.co.nz/content_and_confidentiality

"jon hinton (JIC)" <jon.hinton@bbsrc.ac.uk>
Sent by: owner-openmap-users@bbn.com
04/12/03 03:42

 
        To: openmap-users@bbn.com
        cc:
        Subject: [OpenMap Users] returning a layer form a map bean

Hi,

I am trying to create a mouse mode that acts upon multiple LocationLayers
at once, that is I want to be able click and drag somewhere on the
projection and select points from multiple LocationLayers together. As far
as I understand things, the source for a specific mouse mode MouseEvent is
the mapbean. If this is the case how do I gain access the layer displayed
in a projection through the mapbean? There does not seem to be a specific
method to do this.

I have a feeling that I am missing the point completely and I am going the
wrong way about solving this problem.
Can anyone help or point me in the right direction?

Many Regards
Jon Hinton

--
[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"]
--
[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 Wed Dec 3 15:00:30 2003

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