public MapLayer removeLayerSpecial(int index) { MapLayer layer = null; try { layer = (MapLayer) specialLayers.remove(index); fireMapChanged(); } catch (ArrayIndexOutOfBoundsException e) { } return layer; }
public MapLayer removeLayerSpecial(MapLayer l) { try { if(specialLayers.remove(l)) { fireMapChanged(); } }catch (ArrayIndexOutOfBoundsException e) { } return l; }
    public MapLayer removeLayerSpecial(int index) {        MapLayer layer = null;        try {            layer = (MapLayer) specialLayers.remove(index);            fireMapChanged();        } catch (ArrayIndexOutOfBoundsException e) {        }        return layer;    }