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

From: jon hinton (JIC) <jon.hinton@bbsrc.ac.uk>
Date: Thu Dec 04 2003 - 11:10:51 EST

Thanks Adrian for your help I can now select points from multiple layers. :)
 
I am now having problems with the backgroundPopUpMenus. Because I more than on layer is acting on the event if I click on the background a popup menu for each layer is displayed. I only need one can anyone suggest a way of regulating this?
 
Regards
Jon

-----Original Message-----
From: Adrian Lumsden [mailto:Adrian.Lumsden@sss.co.nz]
Sent: 03 December 2003 19:59
To: jon hinton (JIC)
Cc: openmap-users@bbn.com; owner-openmap-users@bbn.com
Subject: Re: [OpenMap Users] returning a layer form a map bean

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 Thu Dec 4 11:19:20 2003

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