[Mapbender-commits] r6081 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed May 5 03:41:58 EDT 2010


Author: verenadiewald
Date: 2010-05-05 03:41:57 -0400 (Wed, 05 May 2010)
New Revision: 6081

Modified:
   trunk/mapbender/http/plugins/mb_controlDigitizeDialog.js
Log:
definition of wfsConf for feature

Modified: trunk/mapbender/http/plugins/mb_controlDigitizeDialog.js
===================================================================
--- trunk/mapbender/http/plugins/mb_controlDigitizeDialog.js	2010-05-05 07:28:18 UTC (rev 6080)
+++ trunk/mapbender/http/plugins/mb_controlDigitizeDialog.js	2010-05-05 07:41:57 UTC (rev 6081)
@@ -75,6 +75,13 @@
 		obj.feature.e.setElement("fid", currentFeatureId);
 	}
 	
+	if(typeof options.digitizeWfsConfIdLine === "undefined" || 
+			options.digitizeWfsConfIdLine == "" ||
+			typeof options.digitizeWfsConfIdPoint === "undefined" || 
+			options.digitizeWfsConfIdPoint == "") {
+		return;
+	}
+	
 	if(obj.feature.geomType == "line") {
 		var digitizeWfsConfId = options.digitizeWfsConfIdLine;
 	}
@@ -82,11 +89,12 @@
 		var digitizeWfsConfId = options.digitizeWfsConfIdPoint;
 		
 	}
+	
 	var wfsConf = get_complete_wfs_conf();
 	
 	obj.feature.wfs_conf = getJsWfsConfIdByDbWfsConfId(wfsConf, digitizeWfsConfId);
 	
-	window.frames.digitize.dbGeom(method, featureGIndex, function () {}, parseInt(digitizeWfsConfId, 10));
+	window.frames.digitize.dbGeom(method, featureGIndex, function () {});
 };
 
 Mapbender.events.init.register(function () {



More information about the Mapbender_commits mailing list