[Mapbender-commits] r5196 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Dec 16 04:35:37 EST 2009


Author: verenadiewald
Date: 2009-12-16 04:35:34 -0500 (Wed, 16 Dec 2009)
New Revision: 5196

Modified:
   trunk/mapbender/lib/resultGeometryListController.js
Log:
f_label as column head

Modified: trunk/mapbender/lib/resultGeometryListController.js
===================================================================
--- trunk/mapbender/lib/resultGeometryListController.js	2009-12-16 09:29:40 UTC (rev 5195)
+++ trunk/mapbender/lib/resultGeometryListController.js	2009-12-16 09:35:34 UTC (rev 5196)
@@ -67,7 +67,13 @@
 			modelIndex = featureEntryCollection.featureCollection[featureIndex].index;
 			var rowData = [];
 			for (ci in me.columns){
-				var cellContent = '<span class="wfsFproperty">'+ me.model.getFeatureProperty(modelIndex,me.columns[ci])+'</span>';
+				if(me.model.getFeatureProperty(modelIndex,me.columns[ci].name) === false) {
+					var propertyValue = "";
+				}
+				else {
+					var propertyValue = me.model.getFeatureProperty(modelIndex,me.columns[ci].name);
+				}
+				var cellContent = '<span class="wfsFproperty">' + propertyValue + '</span>';
 				rowData.push(cellContent);
 			}
 
@@ -149,7 +155,10 @@
 		for (var j = 0 ; j < currentWfsConf.element.length ; j++) {
 			if(currentWfsConf.element[j].f_show == 1 && currentWfsConf.element[j].f_label!==''){
 				var labelPos = currentWfsConf.element[j].f_respos;
-				labelArray[labelPos] = currentWfsConf.element[j].element_name;
+				labelArray[labelPos] = {
+					name : currentWfsConf.element[j].element_name,
+					label : currentWfsConf.element[j].f_label
+				};
 			}
 		}
 		resultArray = [];



More information about the Mapbender_commits mailing list