[Mapbender-commits] r4054 - branches/2.6/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jun 19 10:53:03 EDT 2009
Author: christoph
Date: 2009-06-19 10:53:03 -0400 (Fri, 19 Jun 2009)
New Revision: 4054
Modified:
branches/2.6/http/javascripts/wms.js
Log:
Modified: branches/2.6/http/javascripts/wms.js
===================================================================
--- branches/2.6/http/javascripts/wms.js 2009-06-19 14:52:11 UTC (rev 4053)
+++ branches/2.6/http/javascripts/wms.js 2009-06-19 14:53:03 UTC (rev 4054)
@@ -479,11 +479,17 @@
*/
wms_const.prototype.handleLayer = function(layer_name, type, value){
var i;
+ var found = false;
for(i = 0; i < this.objLayer.length; i++){
if(this.objLayer[i].layer_name==layer_name) {
+ found = true;
break;
}
}
+ // layer not found
+ if (!found) {
+ return;
+ }
//Set visibility/queryability of Layer and Sublayers
for(var j = i; j < this.objLayer.length; j++){
More information about the Mapbender_commits
mailing list