public void addLayer(Layer layer,int minZoomLevel,int maxZoomLevel){
  _layers.addElement(new LayerWithZoomLevels(layer,minZoomLevel,maxZoomLevel));
  refreshLayers=true;
  super.repaint();
}

public void addLayer ( Layer layer , int minZoomLevel , int maxZoomLevel ) { _layers . addElement ( new LayerWithZoomLevels ( layer , minZoomLevel , maxZoomLevel ) ) ; refreshLayers = true ; super . repaint ( ) ; }
adds a layer to the map
