[Mapbender-commits] r4503 - branches/2.6/http/javascripts
trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Aug 7 08:43:29 EDT 2009
Author: verenadiewald
Date: 2009-08-07 08:43:29 -0400 (Fri, 07 Aug 2009)
New Revision: 4503
Modified:
branches/2.6/http/javascripts/geometry.js
trunk/mapbender/http/javascripts/geometry.js
Log:
function union to append geometryArray to existing geometryArray
Modified: branches/2.6/http/javascripts/geometry.js
===================================================================
--- branches/2.6/http/javascripts/geometry.js 2009-08-07 12:42:53 UTC (rev 4502)
+++ branches/2.6/http/javascripts/geometry.js 2009-08-07 12:43:29 UTC (rev 4503)
@@ -110,6 +110,15 @@
};
/**
+ * appends a geometry array to an existing geometryArray
+ *
+ * @param {GeometryArray} geom GeometryArray
+ */
+GeometryArray.prototype.union = function(geom){
+ return this.importGeoJSON(geom.toString());
+};
+
+/**
* gets an Array of indices; the {@link MultiGeometry} objects at these indices are equal to geom
*
* @type Integer[]
Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js 2009-08-07 12:42:53 UTC (rev 4502)
+++ trunk/mapbender/http/javascripts/geometry.js 2009-08-07 12:43:29 UTC (rev 4503)
@@ -110,6 +110,15 @@
};
/**
+ * appends a geometry array to an existing geometryArray
+ *
+ * @param {GeometryArray} geom GeometryArray
+ */
+GeometryArray.prototype.union = function(geom){
+ return this.importGeoJSON(geom.toString());
+};
+
+/**
* gets an Array of indices; the {@link MultiGeometry} objects at these indices are equal to geom
*
* @type Integer[]
More information about the Mapbender_commits
mailing list