[Mapbender-commits] r3203 - branches/noframes/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Nov 7 05:14:54 EST 2008
Author: christoph
Date: 2008-11-07 05:14:54 -0500 (Fri, 07 Nov 2008)
New Revision: 3203
Modified:
branches/noframes/http/javascripts/map_obj.js
Log:
bug fix merged from trunk
Modified: branches/noframes/http/javascripts/map_obj.js
===================================================================
--- branches/noframes/http/javascripts/map_obj.js 2008-11-07 10:14:08 UTC (rev 3202)
+++ branches/noframes/http/javascripts/map_obj.js 2008-11-07 10:14:54 UTC (rev 3203)
@@ -178,7 +178,6 @@
this.domElement.style.height = this.height;
-
/**
* get the extent of the mapObj
*
@@ -448,6 +447,9 @@
this.getMapUrl = function(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;
@@ -856,4 +858,4 @@
}
eventAfterMapObjectConstruction.trigger();
-}
\ No newline at end of file
+}
More information about the Mapbender_commits
mailing list