private void addBaseLayer() { GeofenceGlobalConfiguration geoFenceConfiguration = (GeofenceGlobalConfiguration) GeofenceUtils.getInstance().getGlobalConfiguration(); /* base layer */ WMSParams wmsParams = new WMSParams(); wmsParams.setLayers(geoFenceConfiguration.getBaseLayerName()); wmsParams.setFormat(geoFenceConfiguration.getBaseLayerFormat()); wmsParams.setStyles(geoFenceConfiguration.getBaseLayerStyle()); WMSOptions wmsLayerParams = new WMSOptions(); wmsLayerParams.setTransitionEffect(TransitionEffect.RESIZE); WMS layer = new WMS( geoFenceConfiguration.getBaseLayerTitle(), geoFenceConfiguration.getBaseLayerURL(), wmsParams, wmsLayerParams); Dispatcher.forwardEvent(GeoGWTEvents.ADD_LAYER, layer); }