diff src/java/de/intevation/mxd/utils/MapToXMLUtils.java @ 315:1d77ea6a915d

Add basic support for Graphics Layers. For now this is restricted to simple TextElements and the base layer.
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 17 Sep 2012 17:08:15 +0200
parents 10e0aa283217
children
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/utils/MapToXMLUtils.java	Mon Sep 17 17:02:15 2012 +0200
+++ b/src/java/de/intevation/mxd/utils/MapToXMLUtils.java	Mon Sep 17 17:08:15 2012 +0200
@@ -164,6 +164,17 @@
     }
 
     /**
+     * Add a arbitray inline feature to the map.
+     * @param layer The parent layer element.
+     * @return The feature element.
+     */
+    public Element addFeature(Element layer) {
+        Element node = creator.create("feature");
+        layer.appendChild(node);
+        return node;
+    }
+
+    /**
      * Print out the XML document.
      */
     public void print() {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)