public void removeLayer(Layer layer){
  int length=_layers.size();
  int no;
  for (no=0; no < length; no++) {
    if (((LayerWithZoomLevels)_layers.elementAt(no)).layer == layer) {
      break;
    }
  }
  _layers.removeElementAt(no);
  refreshLayers=true;
  super.repaint();
}

public void removeLayer ( Layer layer ) { int length = _layers . size ( ) ; int no ; for ( no = 0 ; no < length ; no ++ ) { if ( ( ( LayerWithZoomLevels ) _layers . elementAt ( no ) ) . layer == layer ) { break ; } } _layers . removeElementAt ( no ) ; refreshLayers = true ; super . repaint ( ) ; }
removes a layer from the map
