[Mapbender-commits] r3677 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Mar 12 12:09:23 EDT 2009


Author: christoph
Date: 2009-03-12 12:09:23 -0400 (Thu, 12 Mar 2009)
New Revision: 3677

Modified:
   trunk/mapbender/http/javascripts/map.js
Log:
mb_registerMapObj now returns the new map object

Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js	2009-03-12 16:08:19 UTC (rev 3676)
+++ trunk/mapbender/http/javascripts/map.js	2009-03-12 16:09:23 UTC (rev 3677)
@@ -73,7 +73,9 @@
 });
 
 function mb_registerMapObj(frameName, elementName,wms_index,width, height){
-	mb_mapObj.push(new mb_mapObj_const(frameName, elementName, width, height, wms_index));    
+	var newMapObj = new mb_mapObj_const(frameName, elementName, width, height, wms_index);
+	mb_mapObj.push(newMapObj);    
+	return newMapObj;
 }
 
 /**



More information about the Mapbender_commits mailing list