[OpenLayers-Commits] r4201 - sandbox/thliese/openlayers/lib/OpenLayers/Layer

commits at openlayers.org commits at openlayers.org
Sun Sep 9 11:07:50 EDT 2007


Author: thliese
Date: 2007-09-09 11:07:47 -0400 (Sun, 09 Sep 2007)
New Revision: 4201

Modified:
   sandbox/thliese/openlayers/lib/OpenLayers/Layer/Map24.js
Log:
added map option InitCallback to notify about asynchronous map initialization

Modified: sandbox/thliese/openlayers/lib/OpenLayers/Layer/Map24.js
===================================================================
--- sandbox/thliese/openlayers/lib/OpenLayers/Layer/Map24.js	2007-09-07 23:59:33 UTC (rev 4200)
+++ sandbox/thliese/openlayers/lib/OpenLayers/Layer/Map24.js	2007-09-09 15:07:47 UTC (rev 4201)
@@ -160,6 +160,12 @@
                         }
                     );
                 }
+                
+                // Call the optional callback function to notify about
+                // map initialization
+                if (me.options["InitCallback"] != null) {
+                    me.options["InitCallback"](); // call the function
+                }
             });
             this.mapObject = "Map24"; //placeholder object
         } catch (e) {



More information about the Commits mailing list