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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Dec 17 05:08:27 EST 2009


Author: christoph
Date: 2009-12-17 05:08:22 -0500 (Thu, 17 Dec 2009)
New Revision: 5201

Modified:
   trunk/mapbender/http/plugins/mb_wmsTimeSliderYear.js
Log:


Modified: trunk/mapbender/http/plugins/mb_wmsTimeSliderYear.js
===================================================================
--- trunk/mapbender/http/plugins/mb_wmsTimeSliderYear.js	2009-12-17 09:17:41 UTC (rev 5200)
+++ trunk/mapbender/http/plugins/mb_wmsTimeSliderYear.js	2009-12-17 10:08:22 UTC (rev 5201)
@@ -78,6 +78,13 @@
 	// just one wms
 	options.wms = [options.wms];
 }
+else if (typeof options.wms === "string") {
+	// just one wms
+	options.wms = options.wms.split(",");
+	for (var i in options.wms) {
+		options.wms[i] = parseInt(options.wms[i], 10);
+	}
+}
 else {
 	// invalid configuration
 	options.wms = [];



More information about the Mapbender_commits mailing list