[PATCH] issue765: When creating a WMSLayerFacet copy, also copy original

Wald Commits scm-commit at wald.intevation.org
Fri Feb 7 15:47:34 CET 2014


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1391784523 -3600
# Node ID 8abc861609599a8d3af7b5cb71e10ca694f329f1
# Parent  a67bd7744827d2a1f767a2e3764d32a0f2efb2c2
issue765: When creating a WMSLayerFacet copy, also copy original
extent.

Through this, the initial scaling of the layer will be correct and cloned
projects will show the floodmap.

diff -r a67bd7744827 -r 8abc86160959 artifacts/src/main/java/org/dive4elements/river/artifacts/model/map/WMSLayerFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/map/WMSLayerFacet.java	Fri Feb 07 10:54:03 2014 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/map/WMSLayerFacet.java	Fri Feb 07 15:48:43 2014 +0100
@@ -186,6 +186,7 @@
             copy.layers = new ArrayList<String>();
         }
 
+        copy.originalExtent = originalExtent;
         copy.url     = url;
         copy.extent  = extent;
         copy.srid    = srid;


More information about the Dive4elements-commits mailing list