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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 23 05:35:52 EDT 2010


Author: christoph
Date: 2010-08-23 09:35:52 +0000 (Mon, 23 Aug 2010)
New Revision: 6786

Modified:
   trunk/mapbender/http/plugins/mb_map.js
Log:
changed interface of Mapbender.Map

Modified: trunk/mapbender/http/plugins/mb_map.js
===================================================================
--- trunk/mapbender/http/plugins/mb_map.js	2010-08-23 09:28:23 UTC (rev 6785)
+++ trunk/mapbender/http/plugins/mb_map.js	2010-08-23 09:35:52 UTC (rev 6786)
@@ -58,13 +58,12 @@
 	$this.html('<div id="' + options.id + '_maps" name="maps" ' + 
 		'style="width: 0px; height: 0px; z-index:2;"></div>');
 
-	$this.mapbender(new Mapbender.Map (
-		'', 
-		options.id, 
-		options.width, 
-		options.height, 
-		null
-	));
+	$this.mapbender(new Mapbender.Map ({
+		width: options.width,
+		height: options.height,
+		id: options.id,
+		wms: wms
+	}));
 
 	$this.bind("mousedown", function (e) {
 		e.preventDefault();



More information about the Mapbender_commits mailing list