[Mapbender-commits] r7742 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Apr 4 09:37:13 EDT 2011


Author: verenadiewald
Date: 2011-04-04 06:37:13 -0700 (Mon, 04 Apr 2011)
New Revision: 7742

Modified:
   trunk/mapbender/http/plugins/mb_handleStartUpWmsParams.php
Log:
use afterInit for initializing

Modified: trunk/mapbender/http/plugins/mb_handleStartUpWmsParams.php
===================================================================
--- trunk/mapbender/http/plugins/mb_handleStartUpWmsParams.php	2011-04-04 13:36:50 UTC (rev 7741)
+++ trunk/mapbender/http/plugins/mb_handleStartUpWmsParams.php	2011-04-04 13:37:13 UTC (rev 7742)
@@ -84,7 +84,7 @@
 
 
 // set background WMS
-Mapbender.events.init.register(function () {
+Mapbender.events.afterInit.register(function () {
 	if (apiBackgroundWms !== '') {
 		var newBackgroundWms = parseInt(apiBackgroundWms);
 		if (mod_setBackground_active !== false && wms[mod_setBackground_active]) {
@@ -98,7 +98,7 @@
 });
 
 // set queryability and visibility
-Mapbender.events.init.register(function () {
+Mapbender.events.afterInit.register(function () {
 	if(apiVisibleLayers != '' || apiQueryLayers != '' || 
 		apiVisibleLayersRegExpr != '' || apiQueryLayersRegExpr != '' ||
 		apiDisableLayers != '' || apiDisableQueryLayers != '' || 



More information about the Mapbender_commits mailing list