예제 #1
0
파일: AppView.java 프로젝트: nmco/geofence
  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);
  }