[Mapbender-commits] r3194 - branches/noframes/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Nov 7 05:00:44 EST 2008


Author: christoph
Date: 2008-11-07 05:00:43 -0500 (Fri, 07 Nov 2008)
New Revision: 3194

Modified:
   branches/noframes/http/javascripts/wms.js
Log:
bug fix merged from trunk

Modified: branches/noframes/http/javascripts/wms.js
===================================================================
--- branches/noframes/http/javascripts/wms.js	2008-11-06 15:31:41 UTC (rev 3193)
+++ branches/noframes/http/javascripts/wms.js	2008-11-07 10:00:43 UTC (rev 3194)
@@ -58,7 +58,6 @@
 					gui_wms_epsg,
 					parseInt(gui_wms_visible, 10),
 					parseInt(gui_wms_opacity),
-					parseInt(gui_wms_opacity),
 					gui_wms_sldurl);
 					wms_layer[wms.length - 1] = [];
 }
@@ -271,7 +270,7 @@
 		//visibility of the wms
 		var wmsIsVisible = (this.gui_wms_visible > 0);
 		if(!wmsIsVisible){
-			return false;
+			return [];
 		}
 		visibleLayers = [];
 		for(var i=0; i< this.objLayer.length; i++){
@@ -285,13 +284,14 @@
 			}
 		}
 		if(visibleLayers.length === 0){
-			return false;
+			return [];
 		}
 		return visibleLayers;
 	}
 	catch (e) {
 		alert(e);
 	}
+	return [];
 };
 
 /**



More information about the Mapbender_commits mailing list