[Mapbender-commits] r1085 - in trunk/mapbender: conf http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jan 29 09:10:20 EST 2007


Author: christoph
Date: 2007-01-29 09:10:20 -0500 (Mon, 29 Jan 2007)
New Revision: 1085

Added:
   trunk/mapbender/conf/wfs_default.conf
Modified:
   trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
Log:
wfs button configuration moved to conf file (no longer in element vars)

Added: trunk/mapbender/conf/wfs_default.conf
===================================================================
--- trunk/mapbender/conf/wfs_default.conf	2007-01-29 12:58:45 UTC (rev 1084)
+++ trunk/mapbender/conf/wfs_default.conf	2007-01-29 14:10:20 UTC (rev 1085)
@@ -0,0 +1,27 @@
+function addButtonWfs(id, isOn, src, titleOff, titleOn, x, y) {
+	buttonWfs_id.push(id);
+	buttonWfs_on.push(isOn);
+	buttonWfs_src.push(src);
+	buttonWfs_title_off.push(titleOff);
+	buttonWfs_title_on.push(titleOn);
+	buttonWfs_x.push(x);
+	buttonWfs_y.push(y);
+}
+
+var buttonWfs_imgdir = "../img/button_gray/";
+var buttonWfs_id = new Array();
+var buttonWfs_on = new Array();
+var buttonWfs_src = new Array();
+var buttonWfs_title_off = new Array();
+var buttonWfs_title_on = new Array();
+var buttonWfs_x = new Array();
+var buttonWfs_y = new Array();
+
+addButtonWfs("rectangle", 0, "select_rectangle_off.png", "select by rectangle", "select by rectangle", 750, 10);
+addButtonWfs("polygon", 0, "select_polygon_off.png", "select by polygon", "select by polygon", 780, 10);
+addButtonWfs("point", 1, "select_point_off.png", "select by point", "select by point", 810, 10);
+addButtonWfs("extent", 0, "select_extent_off.png", "select by extent", "select by extent", 840, 10);
+addButtonWfs("dialogue", 0, "select_choose_off.png", "select", "select", 870, 10);
+
+var buttonWfs_toDigitize_on = 1;
+var buttonWfs_toDigitize_src = "../img/wfs_digitize.png";
\ No newline at end of file

Modified: trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php	2007-01-29 12:58:45 UTC (rev 1084)
+++ trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php	2007-01-29 14:10:20 UTC (rev 1085)
@@ -26,6 +26,11 @@
 
 $gui_id = $_REQUEST["gui_id"];
 $e_id_css = "setSpatialRequest";
+
+$wfs_conf_filename = "wfs_default.conf";
+include '../include/dyn_php.php';
+include("../../conf/" . $digitize_conf_filename);
+
 include '../include/dyn_js.php';
 $sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'setSpatialRequest' AND fkey_gui_id = '".$gui_id."'";
 $res = db_query($sql);



More information about the Mapbender_commits mailing list