[Mapbender-commits] r2199 - in branches/2.5/http: javascripts php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Mar 6 10:01:29 EST 2008


Author: nimix
Date: 2008-03-06 10:01:29 -0500 (Thu, 06 Mar 2008)
New Revision: 2199

Modified:
   branches/2.5/http/javascripts/map.js
   branches/2.5/http/javascripts/map.php
   branches/2.5/http/php/system.php
Log:
http://trac.osgeo.org/mapbender/ticket/141
move map.js constans to system.php

Modified: branches/2.5/http/javascripts/map.js
===================================================================
--- branches/2.5/http/javascripts/map.js	2008-03-06 14:38:32 UTC (rev 2198)
+++ branches/2.5/http/javascripts/map.js	2008-03-06 15:01:29 UTC (rev 2199)
@@ -2,9 +2,6 @@
 var n6 = document.getElementById&&!document.all?1:0;
 var n4 = document.layers?1:0;
 
-var mb_feature_count = 100;
-
-var mb_resolution = 28.35;
 var mb_mapObj = [];
 var mb_fiWin = null;
 var mb_panActive = false;

Modified: branches/2.5/http/javascripts/map.php
===================================================================
--- branches/2.5/http/javascripts/map.php	2008-03-06 14:38:32 UTC (rev 2198)
+++ branches/2.5/http/javascripts/map.php	2008-03-06 15:01:29 UTC (rev 2199)
@@ -67,6 +67,8 @@
 echo "var global_mb_log_js = '".LOG_JS."';";
 echo "var global_mb_log_level = '".LOG_LEVEL."';";
 echo "var global_log_levels = '".LOG_LEVEL_LIST."';";
+echo "var mb_feature_count = ".MB_FEATURE_COUNT.";";
+echo "var mb_resolution = ".MB_RESOLUTION.";";
 
 //
 // Load JavaScript libraries

Modified: branches/2.5/http/php/system.php
===================================================================
--- branches/2.5/http/php/system.php	2008-03-06 14:38:32 UTC (rev 2198)
+++ branches/2.5/http/php/system.php	2008-03-06 15:01:29 UTC (rev 2199)
@@ -24,9 +24,12 @@
 define("MB_RELEASE_DATE", mktime(0,0,0,3,6,2008));//h, min,sec,month,day,year
 
 #
-#available log levels 
+# constants from map.js
 #
-define("LOG_LEVEL_LIST", "off,error,warning,notice,all");
+define("MB_RESOLUTION", 28.35);
+define("MB_FEATURE_COUNT", 100);
 
-
-
+#
+# available log levels 
+#
+define("LOG_LEVEL_LIST", "off,error,warning,notice,all");
\ No newline at end of file



More information about the Mapbender_commits mailing list