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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Oct 18 08:29:49 EDT 2007


Author: verenadiewald
Date: 2007-10-18 08:29:48 -0400 (Thu, 18 Oct 2007)
New Revision: 1737

Modified:
   trunk/mapbender/http/javascripts/map_obj.js
Log:
added return value function getCurrentStyleByLayer

Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js	2007-10-18 11:40:06 UTC (rev 1736)
+++ trunk/mapbender/http/javascripts/map_obj.js	2007-10-18 12:29:48 UTC (rev 1737)
@@ -261,7 +261,7 @@
 			if(!style){
 				style = '';
 			}
-			styles.push(style)
+			styles.push(style);
 		}
 		return styles;
 	}
@@ -308,7 +308,7 @@
 wms_const.prototype.getCurrentStyleByLayerName = function(layername){
 	for(var i=0; i< this.objLayer.length; i++){
 		if(this.objLayer[i].layer_name == layername){
-			if(this.objLayer[i].gui_layer_style==''){
+			if(this.objLayer[i].gui_layer_style === '' || this.objLayer[i].gui_layer_style === null){
 				return false;
 			}
 			else{



More information about the Mapbender_commits mailing list