[Mapbender-commits] r3188 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Nov 6 10:08:11 EST 2008
Author: christoph
Date: 2008-11-06 10:08:11 -0500 (Thu, 06 Nov 2008)
New Revision: 3188
Modified:
trunk/mapbender/http/javascripts/map_obj.js
Log:
return false if no layers are valid (there has been a change in the WMS class)
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2008-11-06 15:06:36 UTC (rev 3187)
+++ trunk/mapbender/http/javascripts/map_obj.js 2008-11-06 15:08:11 UTC (rev 3188)
@@ -247,6 +247,9 @@
this.getMapUrl = function (i, ii) {
var currentWms = this.wms[ii];
var validLayers = currentWms.getLayers(this);
+ if(validLayers.length === 0) {
+ return false;
+ }
var layerNames = validLayers.join(",");
url = currentWms.wms_getmap;
@@ -401,4 +404,4 @@
};
eventAfterMapObjectConstruction.trigger();
-}
\ No newline at end of file
+}
More information about the Mapbender_commits
mailing list