[Mapbender-commits] r7011 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 4 04:32:57 EDT 2010


Author: verenadiewald
Date: 2010-10-04 08:32:57 +0000 (Mon, 04 Oct 2010)
New Revision: 7011

Modified:
   trunk/mapbender/lib/core.js
Log:
new syntax for event eventAfterLoadWMS


Modified: trunk/mapbender/lib/core.js
===================================================================
--- trunk/mapbender/lib/core.js	2010-10-04 07:51:08 UTC (rev 7010)
+++ trunk/mapbender/lib/core.js	2010-10-04 08:32:57 UTC (rev 7011)
@@ -14,41 +14,46 @@
 /**
  * Triggered after a map is requested.
  */
-Mapbender.events.afterMapRequest = new MapbenderEvent();
+Mapbender.events.afterMapRequest = new Mapbender.Event();
 
 /**
  * Triggered when Mapbender is loaded and after the map object has been initialised.
  */
-Mapbender.events.init = new MapbenderEvent();
+Mapbender.events.init = new Mapbender.Event();
 
 /**
  * Triggered before eventInit.
  */
-Mapbender.events.beforeInit = new MapbenderEvent();
+Mapbender.events.beforeInit = new Mapbender.Event();
 
 /**
  * Triggered after Mapbender is loaded and has been initialised.
  * Used to trigger initial map requests
  */
-Mapbender.events.afterInit = new MapbenderEvent();
+Mapbender.events.afterInit = new Mapbender.Event();
 
 /**
  * Initializes the map object. Triggered when Mapbender is loaded. 
  */
-Mapbender.events.initMaps = new MapbenderEvent();
+Mapbender.events.initMaps = new Mapbender.Event();
 
 /**
  * Switches the locale. Triggered by module switch_locale or onload(?) 
  */
-Mapbender.events.localize = new MapbenderEvent();
+Mapbender.events.localize = new Mapbender.Event();
 
 /**
  * Triggered when the Gazetteer is ready and all of it evenst have been initialised.
  * Triggered by the gazetteer module.
  */
-Mapbender.events.gazetteerReady = new MapbenderEvent();
+Mapbender.events.gazetteerReady = new Mapbender.Event();
 
+/**
+ * Triggered after a WMS has been loaded.
+ */
+Mapbender.events.afterLoadWms = new Mapbender.Event();
 
+
 Mapbender.events.hideSplashScreen.register(function() {
 	// remove the splash screen, show the application
 	$("#loading_mapbender").remove();
@@ -77,33 +82,29 @@
 var eventAfterInit = Mapbender.events.afterInit;
 var eventInitMap = Mapbender.events.initMaps;
 var eventLocalize = Mapbender.events.localize;
+var eventAfterLoadWMS = Mapbender.events.afterLoadWms;
 
 /**
  * Triggered after the map has been resized
  */
-var eventResizeMap = new MapbenderEvent();
+var eventResizeMap = new Mapbender.Event();
 
 /**
  * Triggered after aall map images have been loaded.
  */
-var eventAfterMapImagesReady = new MapbenderEvent();
+var eventAfterMapImagesReady = new Mapbender.Event();
 
 /**
  * Triggered before a map is requested.
  */
-var eventBeforeMapRequest = new MapbenderEvent();
+var eventBeforeMapRequest = new Mapbender.Event();
 
 /**
  * Triggered before a feature info is requested.
  */
-var eventBeforeFeatureInfo = new MapbenderEvent();
-/**
- * Triggered after a WMS has been loaded.
- */
-var eventAfterLoadWMS = new MapbenderEvent();
+var eventBeforeFeatureInfo = new Mapbender.Event();
 
 
-
 var currentWmcExtensionData = {};
 var restoredWmcExtensionData = {};
 



More information about the Mapbender_commits mailing list