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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Dec 8 10:59:33 EST 2009


Author: kmq
Date: 2009-12-08 10:59:25 -0500 (Tue, 08 Dec 2009)
New Revision: 5084

Removed:
   trunk/mapbender/http/javascripts/mod_ResultList_SaveAsFile.js
Modified:
   trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:
removed unneccessary file

Deleted: trunk/mapbender/http/javascripts/mod_ResultList_SaveAsFile.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_ResultList_SaveAsFile.js	2009-12-08 13:51:41 UTC (rev 5083)
+++ trunk/mapbender/http/javascripts/mod_ResultList_SaveAsFile.js	2009-12-08 15:59:25 UTC (rev 5084)
@@ -1,22 +0,0 @@
-var WFSSaveAsFile = function(data){
-	var req = new parent.Mapbender.Ajax.Request({
-		url: "../php/mod_echo.php",
-		method:"createFile",
-		parameters: {
-			data: data.geoJSON
-		},
-		callback : function(result, success, message){
-			if(success){
-				parent.document.location.href= result.url;
-			}else{
-
-			}
-
-		}
-			
-	});
-	req.send();
-
-}
-
-parent.Mapbender.modules[options.target[0]].addGlobalButton({"title":"Save as File", "callback": WFSSaveAsFile});

Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-08 13:51:41 UTC (rev 5083)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2009-12-08 15:59:25 UTC (rev 5084)
@@ -1167,6 +1167,15 @@
 			        		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 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(); 
 						}
 						else {
 							document.getElementById("res").innerHTML = '';



More information about the Mapbender_commits mailing list