code: public void refresh() {
  		if (layer instanceof RasterLayer) {
  			RasterLayer rLayer = (RasterLayer) layer;
  			rLayer.setVisible(false);
  			rLayer.getStore().clear();
  			rLayer.setVisible(true);
  		} else if (layer instanceof org.geomajas.gwt.client.map.layer.VectorLayer) {
  			org.geomajas.gwt.client.map.layer.VectorLayer vl = (org.geomajas.gwt.client.map.layer.VectorLayer) layer;
  			vl.setVisible(false);
  			vl.clearSelectedFeatures();
  			vl.getFeatureStore().clear();
  			vl.setVisible(true);
  		}
  	}
docs: Completely clear all rendering of this layer and redraw.