[Mapbender-commits] r3184 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Nov 6 10:00:54 EST 2008
Author: christoph
Date: 2008-11-06 10:00:53 -0500 (Thu, 06 Nov 2008)
New Revision: 3184
Modified:
trunk/mapbender/http/javascripts/wms.js
Log:
bug fix, callee expects array and not boolean
Modified: trunk/mapbender/http/javascripts/wms.js
===================================================================
--- trunk/mapbender/http/javascripts/wms.js 2008-11-06 07:59:04 UTC (rev 3183)
+++ trunk/mapbender/http/javascripts/wms.js 2008-11-06 15:00:53 UTC (rev 3184)
@@ -270,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++){
@@ -284,13 +284,14 @@
}
}
if(visibleLayers.length === 0){
- return false;
+ return [];
}
return visibleLayers;
}
catch (e) {
alert(e);
}
+ return [];
};
/**
@@ -773,4 +774,4 @@
wms_layer.prototype.setQueryable = function(queryable){
this.gui_layer_querylayer = parseInt(queryable, 10);
//console.log("setQueryable(%i) for Layer %s",queryable, this.layer_name);
-};
\ No newline at end of file
+};
More information about the Mapbender_commits
mailing list