Debug.message("layerhandler", "LayerHandler: adding layer listener");
listeners.addLayerListener(ll);
// Usually, the listeners are interested in one type of event
// or the other. So fire both, and let the listener hash it
// out.
ll.setLayers(new LayerEvent(this, LayerEvent.ALL, allLayers));
ll.setLayers(new LayerEvent(this, LayerEvent.ADD, getMapLayers()));
}