/** * Remove the given layer from this context, if present, and trigger a {@linkplain * MapLayerListEvent} * * @param layer the layer to be removed * @return true if the layer was present; false otherwise */ public boolean removeLayer(MapLayer layer) { int index = indexOf(layer); // getLayerBounds(); if (index == -1) { return false; } else { removeLayer(index); return true; } }
/** * Remove the given layer from this context, if present, and trigger a * {@linkplain MapLayerListEvent} * * @param layer * the layer to be removed * * @return true if the layer was present; false otherwise */ public boolean removeLayer(MapLayer layer) { int index = indexOf(layer); // getLayerBounds(); if (index == -1) { return false; } else { removeLayer(index); return true; } }
/** * Remove a layer and trigger a {@link LayerListEvent}. * * @param layer * Then new layer that has been removed. * * @return DOCUMENT ME! */ public boolean removeLayer(MapLayer layer) { int index = indexOf(layer); // getLayerBounds(); if (index == -1) { return false; } else { removeLayer(index); return true; } }