[Mapbender-commits] r5099 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Dec 9 12:01:46 EST 2009
Author: christoph
Date: 2009-12-09 12:01:45 -0500 (Wed, 09 Dec 2009)
New Revision: 5099
Modified:
trunk/mapbender/http/javascripts/geometry.js
Log:
Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js 2009-12-09 16:35:36 UTC (rev 5098)
+++ trunk/mapbender/http/javascripts/geometry.js 2009-12-09 17:01:45 UTC (rev 5099)
@@ -65,7 +65,12 @@
this.addMember = function(geomType){
this.add(new MultiGeometry(geomType));
};
-
+
+ this.addCopy = function (feature) {
+ this.importGeoJSON(feature.toString());
+ this.get(-1).wfs_conf = feature.wfs_conf;
+ };
+
/**
* @ignore
*/
@@ -542,6 +547,9 @@
GeometryArray.prototype.featureToString = function (i) {
var str = "{\"type\": \"FeatureCollection\", \"features\": [";
+ alert(i);
+ alert(typeof i);
+ alert(this.get(i).constructor);
str += this.get(i).toString();
str += "]}";
return str;
@@ -1898,6 +1906,7 @@
}
};
+
/**
* removes all MultiGeometries.
*
More information about the Mapbender_commits
mailing list