# HG changeset patch # User Ingo Weinzierl # Date 1315330543 0 # Node ID f5855350fc03a683e69b59b2f58572d8d9d58700 # Parent 6b047887855bf89b5105ef0c50d6537598b2a954 Set WSPLGEN specific 'type' attributes after digitizing new geometries. flys-client/trunk@2655 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 6b047887855b -r f5855350fc03 flys-client/ChangeLog --- a/flys-client/ChangeLog Tue Sep 06 11:43:47 2011 +0000 +++ b/flys-client/ChangeLog Tue Sep 06 17:35:43 2011 +0000 @@ -1,3 +1,9 @@ +2011-09-06 Ingo Weinzierl + + * src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java: + Set WSPLGEN specific names for the 'type' attribute after digitizing new + geometries. + 2011-09-06 Felix Wolfsteller * src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java: diff -r 6b047887855b -r f5855350fc03 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java Tue Sep 06 11:43:47 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java Tue Sep 06 17:35:43 2011 +0000 @@ -137,7 +137,22 @@ if (type == null || type.length() == 0) { type = getSelectedType(); - attrs.setAttribute("typ", type); + + if (type.equals(BARRIER_PIPE1)) { + attrs.setAttribute("typ", "Rohr 1"); + } + else if (type.equals(BARRIER_PIPE2)) { + attrs.setAttribute("typ", "Rohr 2"); + } + else if (type.equals(BARRIER_DAM)) { + attrs.setAttribute("typ", "Damm"); + } + else if (type.equals(BARRIER_DITCH)) { + attrs.setAttribute("typ", "Graben"); + } + else if (type.equals(BARRIER_RINGDIKE)) { + attrs.setAttribute("typ", "Ringdeich"); + } } }