public void setFeatures ( Map < String , List < org . geomajas . layer . feature . Feature > > featureMap ) { MapModel mapModel = mapWidget . getMapModel ( ) ; for ( Entry < String , List < org . geomajas . layer . feature . Feature > > clientLayerId : featureMap . entrySet ( ) ) { Layer < ? > layer = mapModel . getLayer ( clientLayerId . getKey ( ) ) ; if ( null != layer ) { List < org . geomajas . layer . feature . Feature > orgFeatures = clientLayerId . getValue ( ) ; if ( ! orgFeatures . isEmpty ( ) ) { addFeatures ( layer , orgFeatures ) ; } } } }
Feed a map of features to the widget so it can be built .