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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Dec 9 08:33:49 EST 2009


Author: christoph
Date: 2009-12-09 08:33:49 -0500 (Wed, 09 Dec 2009)
New Revision: 5092

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:


Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-09 13:33:27 UTC (rev 5091)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-09 13:33:49 UTC (rev 5092)
@@ -1166,16 +1166,19 @@
 			        		geomArray.importGeoJSON(geoObj);
 			        		document.getElementById("res").innerHTML = '';
 							displayResult(geomArray);
+							
 							parent.Mapbender.modules.gazetteerWFS.receiveFeatureCollection.trigger(geoObj);
-							parent.Mapbender.modules.resultList.clear();
-							parent.Mapbender.modules.resultList.setWFSconf(global_wfsConfObj[global_selectedWfsConfId]);
-							parent.Mapbender.modules.resultList.addFeatureCollection(geoObj);
+							
+							var resultList = parent.Mapbender.modules.resultList;
+							resultList.clear();
+							resultList.setWFSconf(global_wfsConfObj[global_selectedWfsConfId]);
+							resultList.addFeatureCollection(geoObj);
 							var popup = function(feature){
 								 alert(feature.e.getElementValueByName('firstname'))
 							 };
-							parent.Mapbender.modules.resultList.addPopupButton({"title":"CLICKME", "callback":popup});
-							parent.Mapbender.modules.resultList.addRowButton({"title":"ImAButton", "callback":popup, "index":-1});
-							parent.Mapbender.modules.resultList.show(); 
+							resultList.addPopupButton({"title":"CLICKME", "callback":popup});
+							resultList.addRowButton({"title":"ImAButton", "callback":popup, "index":-1});
+							resultList.show(); 
 						}
 						else {
 							document.getElementById("res").innerHTML = '';



More information about the Mapbender_commits mailing list