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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 6 05:59:29 EDT 2007


Author: christoph
Date: 2007-08-06 05:59:29 -0400 (Mon, 06 Aug 2007)
New Revision: 1611

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
Log:
i18nized

Modified: trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php	2007-08-06 09:55:51 UTC (rev 1610)
+++ trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php	2007-08-06 09:59:29 UTC (rev 1611)
@@ -72,7 +72,46 @@
 var mod_wfs_spatialRequest_geometry = null;
 var mod_wfs_spatialRequestSubFunctions = [];
 
+var buttonWfs_id = [];
+var buttonWfs_on = [];
+var buttonWfs_src = [];
+var buttonWfs_title_off = [];
+var buttonWfs_title_on = [];
+var buttonWfs_x = [];
+var buttonWfs_y = [];
 
+function addButtonWfs(id, isOn, src, title, x, y) {
+	buttonWfs_id.push(id);
+	buttonWfs_on.push(isOn);
+	buttonWfs_src.push(src);
+	buttonWfs_title_off.push(title);
+	buttonWfs_title_on.push(title);
+	buttonWfs_x.push(x);
+	buttonWfs_y.push(y);
+}
+
+var msgObj;
+
+mb_registerInitFunctions("init_wfsSpatialRequest()");
+mb_registerL10nFunctions("init_wfsSpatialRequest()");
+
+function init_wfsSpatialRequest() {
+	mb_ajax_json("../php/mod_wfsSpatialRequest_messages.php", function(obj, status) {
+		msgObj = obj;
+		buttonWfs_id = [];
+		buttonWfs_on = [];
+		buttonWfs_src = [];
+		buttonWfs_title_off = [];
+		buttonWfs_title_on = [];
+		buttonWfs_x = [];
+		buttonWfs_y = [];
+		addButtonWfs("rectangle", buttonRectangle.status, buttonRectangle.img, msgObj.buttonLabelRectangle, msgObj.buttonLabelRectangle, buttonRectangle.x, buttonRectangle.y);
+		addButtonWfs("polygon", buttonPolygon.status, buttonPolygon.img, msgObj.buttonLabelPolygon, msgObj.buttonLabelPolygon, buttonPolygon.x, buttonPolygon.y);
+		addButtonWfs("point", buttonPoint.status, buttonPoint.img, msgObj.buttonLabelPoint, msgObj.buttonLabelPoint, buttonPoint.x, buttonPoint.y);
+		addButtonWfs("extent", buttonExtent.status, buttonExtent.img, msgObj.buttonLabelExtent, msgObj.buttonLabelExtent, buttonExtent.x, buttonExtent.y);
+		addButtonWfs("dialogue", buttonDialogue.status, buttonDialogue.img, msgObj.buttonLabelDialogue, msgObj.buttonLabelDialogue, buttonDialogue.x, buttonDialogue.y);
+	});
+}
 // ------------------------------------------------------------------------------------------
 // ------------ button handling -------------------------------------------------------------
 



More information about the Mapbender_commits mailing list