예제 #1
0
  public Layer addInternalActiveLayer(Layer layer) {
    // Internal Active layers are not shown in the layer tree but are shown in the active layers
    // list
    layer.setValue(Constants.ACTIVE_LAYER, true);

    return addLayer(layer, Constants.INTERNAL_LAYER);
  }
예제 #2
0
  private Layer addLayer(Layer layer, String layerType) {
    if (layer != null) {
      layer.setValue(layerType, true);
      this.getWWPanel().addLayer(layer);
    }

    return layer;
  }