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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Dec 10 05:03:37 EST 2007


Author: verenadiewald
Date: 2007-12-10 05:03:36 -0500 (Mon, 10 Dec 2007)
New Revision: 1907

Modified:
   trunk/mapbender/http/javascripts/map.js
Log:
control singleMapRequest layers if in scale

Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js	2007-12-07 15:09:47 UTC (rev 1906)
+++ trunk/mapbender/http/javascripts/map.js	2007-12-10 10:03:36 UTC (rev 1907)
@@ -846,7 +846,7 @@
 				var validLayers = mb_checkScale(frameName,i,ii);
 				var layerNames = validLayers.toString();
 				
-				if(mb_mapObj[i].wms[ii].wms_id == wms_id && layerNames!=''){  
+				if(mb_mapObj[i].wms[ii].wms_id == wms_id){  
 					var newMapURL = "";
 					newMapRequest += "<img id='"+myMapId+"' name='mapimage' src='";
 					newMapURL += mb_mapObj[i].wms[ii].wms_getmap; 
@@ -901,7 +901,7 @@
 					}
 
 					//prompt("",newMapURL);
-					if(mb_mapObj[i].layers[ii] != ""){
+					if(mb_mapObj[i].layers[ii] != "" && layerNames!=''){
 						newMapRequest += newMapURL;
 						mb_mapObj[i].mapURL[ii] = newMapURL;
 						mb_mapObj[i].wms[ii].mapURL = newMapURL;



More information about the Mapbender_commits mailing list