[Mapbender-commits] r2498 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 11 04:30:28 EDT 2008


Author: christoph
Date: 2008-06-11 04:30:28 -0400 (Wed, 11 Jun 2008)
New Revision: 2498

Modified:
   branches/2.5/http/javascripts/map.js
Log:
avoid sld=undefined

Modified: branches/2.5/http/javascripts/map.js
===================================================================
--- branches/2.5/http/javascripts/map.js	2008-06-10 12:59:30 UTC (rev 2497)
+++ branches/2.5/http/javascripts/map.js	2008-06-11 08:30:28 UTC (rev 2498)
@@ -752,14 +752,14 @@
 							}
 						}           
 						// add Filter
-						if(mb_mapObj[i].wms[ii].wms_filter !== ""){
+						if(mb_mapObj[i].wms[ii].wms_filter){
 							var tmp = mb_mapObj[i].wms[ii].wms_filter +"?id="+ mb_styleID;
 
 							var temp = "&SLD=" + tmp+ "&";
 							newMapURL += temp;
 						}
 						// add sld
-						if(mb_mapObj[i].wms[ii].gui_wms_sldurl !== ""){
+						if(mb_mapObj[i].wms[ii].gui_wms_sldurl){
 							//alert(mb_mapObj[i].wms[ii].gui_wms_sldurl);
 							var temp = "&SLD=" + escape(mb_mapObj[i].wms[ii].gui_wms_sldurl) + "&";
 							newMapURL += temp;
@@ -861,14 +861,14 @@
 						} 
 					}
 					// add Filter
-					if(mb_mapObj[i].wms[ii].wms_filter !== ""){
+					if(mb_mapObj[i].wms[ii].wms_filter){
 						var tmp = mb_mapObj[i].wms[ii].wms_filter +"?id="+ mb_styleID;
 						//prompt("",tmp);;
 						var temp = "&SLD=" + tmp+ "&";
 						newMapURL += temp;
 					}
 					// add sld
-					if(mb_mapObj[i].wms[ii].gui_wms_sldurl !== ""){
+					if(mb_mapObj[i].wms[ii].gui_wms_sldurl){
 						//alert(mb_mapObj[i].wms[ii].gui_wms_sldurl);
 						var temp = "&SLD=" + escape(mb_mapObj[i].wms[ii].gui_wms_sldurl) + "&";
 						newMapURL += temp;



More information about the Mapbender_commits mailing list