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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Dec 3 08:42:45 EST 2009


Author: christoph
Date: 2009-12-03 08:42:44 -0500 (Thu, 03 Dec 2009)
New Revision: 5069

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-03 13:37:26 UTC (rev 5068)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-03 13:42:44 UTC (rev 5069)
@@ -45,6 +45,10 @@
 	echo "var e_id_css = '" . $e_id_css . "';";
 ?>
 
+parent.Mapbender.events.init.register(function() {
+	parent.Mapbender.modules.gazetteerWFS.receiveFeatureCollection = new parent.Mapbender.Event();
+});
+
 // Element var maxHighlightedPoints
 try{
 	if (maxHighlightedPoints){
@@ -1144,7 +1148,6 @@
 			};
 			parent.mb_ajax_get("../php/mod_wfs_gazetteer_server.php", parameters, function (jsCode, status) {
 				document.getElementById("res").innerHTML = "<table><tr><td>"+arrangeResultsText+"</td></tr></table>";
-				
 				if(status=='success'){
 					for (var i=0; i < parent.wms.length; i++) {
 						for (var j=0; j < parent.wms[i].objLayer.length; j++) {
@@ -1163,10 +1166,12 @@
 			        		geomArray.importGeoJSON(geoObj);
 			        		document.getElementById("res").innerHTML = '';
 							displayResult(geomArray);
+							parent.Mapbender.modules.gazetteerWFS.receiveFeatureCollection.trigger(geoObj);
 						}
 						else {
 							document.getElementById("res").innerHTML = '';
 							displayResult();
+							parent.Mapbender.modules.gazetteerWFS.receiveFeatureCollection.trigger(null);
 						}
 					}
 		       		else {



More information about the Mapbender_commits mailing list