public void removeLayer(long theLayerId){
  Layer layer=layersMap.remove(theLayerId);
  layers.remove(layer);
}

public void removeLayer ( long theLayerId ) { Layer layer = layersMap . remove ( theLayerId ) ; layers . remove ( layer ) ; }
removes layer with the given id from the map .
