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);
layers.add(vLayer);
eventBus.fireEvent(new LayerAddedEvent(vLayer));
break;
}
}