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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Dec 23 08:47:46 EST 2009


Author: topi
Date: 2009-12-23 08:47:45 -0500 (Wed, 23 Dec 2009)
New Revision: 5247

Modified:
   trunk/mapbender/http/plugins/ol_wms.php
Log:


Modified: trunk/mapbender/http/plugins/ol_wms.php
===================================================================
--- trunk/mapbender/http/plugins/ol_wms.php	2009-12-23 13:36:40 UTC (rev 5246)
+++ trunk/mapbender/http/plugins/ol_wms.php	2009-12-23 13:47:45 UTC (rev 5247)
@@ -29,8 +29,10 @@
  * and Simplified BSD license.  
  * http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
  */
+
+Mapbender.events.init.register(function () {
  
- var ol_map = Mapbender.modules[options.target[0]];
+	var ol_map = Mapbender.modules[options.target[0]];
 <?php
 
 require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
@@ -48,4 +50,5 @@
 	$mywms->createOlObjFromWMS($cnt==0);
 	$cnt++;
 }
-?>
\ No newline at end of file
+?>
+});
\ No newline at end of file



More information about the Mapbender_commits mailing list