code: @Api
  	public void refreshLayer(Layer<?> layer) {
  		if (layer instanceof VectorLayer) {
  			VectorLayer vLayer = (VectorLayer) layer;
  			vLayer.getFeatureStore().clear();
  		} else if (layer instanceof RasterLayer) {
  			RasterLayer rLayer = (RasterLayer) layer;
  			rLayer.getStore().clear();
  		}
  		render(layer, null, RenderStatus.ALL);
  	}
docs: Refresh a layer. This will re-render the layer with freshly fetched data.
  
  @param layer layer
  @since 1.11.0