private void addLayerWithoutFireEvent ( ClientLayerInfo layerInfo ) { switch ( layerInfo . getLayerType ( ) ) { case RASTER : if ( layerInfo instanceof ClientWmsLayerInfo ) { InternalClientWmsLayer internalClientWmsLayer = new InternalClientWmsLayer ( this , ( ClientWmsLayerInfo ) layerInfo ) ; layers . add ( internalClientWmsLayer ) ; } else { RasterLayer rasterLayer = new RasterLayer ( this , ( ClientRasterLayerInfo ) layerInfo ) ; layers . add ( rasterLayer ) ; } break ; default : VectorLayer vectorLayer = new VectorLayer ( this , ( ClientVectorLayerInfo ) layerInfo ) ; layers . add ( vectorLayer ) ; vectorLayer . addFeatureSelectionHandler ( selectionPropagator ) ; break ; } }
Add a layer to the map but do not fire an event for update .