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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Dec 8 05:08:29 EST 2008


Author: christoph
Date: 2008-12-08 05:08:29 -0500 (Mon, 08 Dec 2008)
New Revision: 3272

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
Log:
http://trac.osgeo.org/mapbender/ticket/330

Modified: trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php	2008-12-08 10:05:31 UTC (rev 3271)
+++ trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php	2008-12-08 10:08:29 UTC (rev 3272)
@@ -445,7 +445,7 @@
 	for (var i=0; i<mb_mapObj[ind].wms.length; i++){
 		for(var ii=0; ii<mb_mapObj[ind].wms[i].objLayer.length; ii++){
 			var o = mb_mapObj[ind].wms[i].objLayer[ii];
-			if(o.gui_layer_wfs_featuretype != '' && o.gui_layer_querylayer == '1' && o.gui_layer_visible == '1'){
+			if(o.gui_layer_wfs_featuretype != '' && o.gui_layer_visible == '1'){
 				// db_wfs_conf_id entries have to be unique
 				var exists = false;
 				for (var iii = 0; iii < db_wfs_conf_id.length; iii++) {
@@ -631,7 +631,7 @@
 		var geom = new GeometryArray();
 		geom.importGeoJSON(json);
 		for (var i = 0; i < geom.count(); i++) {
-			geom.get(i).wfs_conf = js_wfs_conf_id;
+			geom.get(i).wfs_conf = parseInt(js_wfs_conf_id);
 		}
 
 		checkIfAllAjaxCallsFinished(geom);



More information about the Mapbender_commits mailing list