[OpenMap Users] No LayerEvent.REMOVE delivered on layer deletion???

From: Adrian Lumsden <Adrian.Lumsden@sss.co.nz>
Date: Thu Nov 27 2003 - 18:26:54 EST

Hello,

I have a LayersListener in a custom mouse mode. It manages several layers
of the same type keeping track of which instance of that layer class is
the chosen one. It needs to know if that layer gets deleted.

When I delete the selected layer with the LayersPanel and dump the layer
event(s) that arrive I get two events:

12:05:03.703: @@@CaptureMouseMode.niEventHandler.166:
nie=LayersChangedEvent
12:05:03.703: @@@CaptureMouseMode.niEventHandler.174: layers.length=7,
getType()=403
12:05:03.703: @@@CaptureMouseMode.niEventHandler.166:
nie=LayersChangedEvent
12:05:03.703: @@@CaptureMouseMode.niEventHandler.174: layers.length=6,
getType()=402

The first one has type LayerEvent.ALL with seven layers in total.

The second one has type LayerEvent.REPLACE with six layers.

Que passa? Why don't I get a REMOVE event type and what's the significance
of ALL? The Javadocs say:

ALL
public static final transient int ALL

Any suggestions? I'm using 4.5.4.

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@spamblackhole.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

--
[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 Nov 27 18:27:48 2003

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