diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 148:2bf35f0babd0

Implemented new group layer functionality.
author vc11884admin@VC11884.win.bsh.de
date Wed, 29 Jun 2011 17:45:50 +0200
parents b2c5a66022f1
children 8a87c796bf47
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Jun 29 17:36:07 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Jun 29 17:45:50 2011 +0200
@@ -152,7 +152,9 @@
             lname = lname.replaceAll(" ", "");
             layer.setName(lname);
             layer.setMetaData("wms_title", layerElement.getAttribute("name"));
-
+            if(layerElement.hasAttribute("group")) {
+	    	layer.setGroup(layerElement.getAttribute("group"));
+	    }
             //The layer status.
             String stat = layerElement.getAttribute("status");
             if (stat.equals("on")) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)