}
public void addLayer(ClientLayerInfo layerInfo) {
switch (layerInfo.getLayerType()) {
case RASTER:
RasterLayer rLayer = new RasterLayer((ClientRasterLayerInfo) layerInfo, viewPort, eventBus);
layers.add(rLayer);
eventBus.fireEvent(new LayerAddedEvent(rLayer));
break;
default:
VectorLayer vLayer = new VectorLayer((ClientVectorLayerInfo) layerInfo, viewPort, eventBus);