Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] listening for a layer removal

Hi, I am wondering how to listen for a layer being removed from a map. I’ve tried this:

 

                ApplicationGIS.getActiveMap().addMapListener(new IMapListener() {

                    public void changed( MapEvent event ) {

                        if(event.getType().equals(MapEventType.MAP_COMMAND)) {

                            //I want to get more specific info about the event?

                        }

                    }

                });

 

Which lets me know when a map command has been executed, but I am not sure how to see if the command corresponded to the

removal of a layer. Thanks for your help.

 

Lewis


Back to the top