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

From: Adrian Lumsden <Adrian.Lumsden@sss.co.nz>
Date: Sun Dec 07 2003 - 15:45:05 EST

Hello Jon,

Either that or have the mouse mode pick up the right click and pop up the
menu without the event going on down to any of the layers.

With my app. the user has to select one of the multiple layers of the same
type (oops - class) that is the active one. This is tracked by the mouse
mode itself. It can either vector the mouse event directly to the active
layer or handle the event itself and call some method in the active layer
depending on how you want the event to be handled. With my mouse
mode/layer combination all of the clicks have to be within range of a
point plotted on the layer. If it is not the mouse mode ignores the event.

all the best,

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

Don Dietrick <dietrick@bbn.com>
Sent by: owner-openmap-users@bbn.com
05/12/03 11:06

 
        To: "jon hinton (JIC)" <jon.hinton@bbsrc.ac.uk>
        cc: "'openmap-users@bbn.com'" <openmap-users@bbn.com>
        Subject: Re: [OpenMap Users] returning a layer form a map bean

Hi Jon,

Make sure your top layer is consuming the mouse events by returning
true from the MapMouseListener methods.

- Don

On Dec 4, 2003, at 11:10 AM, jon hinton (JIC) wrote:

> 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"]
--
[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 Sun Dec 7 15:48:31 2003

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