[Mapbender-commits] r6093 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu May 6 10:04:12 EDT 2010


Author: verenadiewald
Date: 2010-05-06 10:04:09 -0400 (Thu, 06 May 2010)
New Revision: 6093

Modified:
   trunk/mapbender/http/javascripts/geometry.js
Log:
union function typing error -> geom has to be mygeom in line 171

Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js	2010-05-06 13:35:02 UTC (rev 6092)
+++ trunk/mapbender/http/javascripts/geometry.js	2010-05-06 14:04:09 UTC (rev 6093)
@@ -154,6 +154,7 @@
 	//
 	if (typeof uniqueFid === "boolean" && uniqueFid) {
 		mygeom = geom.clone();
+		
 		for (i = 0; i < this.count(); i++) {
 			var existingFid = this.get(i).e.getElementValueByName("fid");
 			var len = mygeom.count() - 1;
@@ -167,7 +168,7 @@
 		}
 	}
 
-	this.importGeoJSON(geom.toString());
+	this.importGeoJSON(mygeom.toString());
 	j = 0;
 	for (i = oldLen; i < this.count(); i++) {
 		if (typeof mygeom.get(j).wfs_conf !== "undefined") {



More information about the Mapbender_commits mailing list