[Mapbender-commits] r1727 - branches/mapbender_sld/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 15 10:22:12 EDT 2007


Author: mschulz
Date: 2007-10-15 10:22:12 -0400 (Mon, 15 Oct 2007)
New Revision: 1727

Modified:
   branches/mapbender_sld/http/javascripts/map.js
Log:
merging bugfix for getExtentInfo

Modified: branches/mapbender_sld/http/javascripts/map.js
===================================================================
--- branches/mapbender_sld/http/javascripts/map.js	2007-10-12 08:37:10 UTC (rev 1726)
+++ branches/mapbender_sld/http/javascripts/map.js	2007-10-15 14:22:12 UTC (rev 1727)
@@ -186,7 +186,8 @@
 	 * @type Object
 	 */
 	this.getExtentInfos = function(){
-		var ext = new Extent(this.getExtent());
+		var c = this.getExtent().split(",");
+		var ext = new Extent(c[0],c[1],c[2],c[3]);
 		return ext;
 	};
 	
@@ -614,7 +615,7 @@
 						// add sld
 						if(mb_mapObj[i].wms[ii].gui_wms_sldurl != ""){
 							//alert(mb_mapObj[i].wms[ii].gui_wms_sldurl);
-							var temp = "&SLD=" + mb_mapObj[i].wms[ii].gui_wms_sldurl + "&";
+							var temp = "&SLD=" + escape(mb_mapObj[i].wms[ii].gui_wms_sldurl) + "&";
 							newMapURL += temp;
 						}
 						if(mb_log){
@@ -703,7 +704,7 @@
 					// add sld
 					if(mb_mapObj[i].wms[ii].gui_wms_sldurl != ""){
 						//alert(mb_mapObj[i].wms[ii].gui_wms_sldurl);
-						var temp = "&SLD=" + mb_mapObj[i].wms[ii].gui_wms_sldurl + "&";
+						var temp = "&SLD=" + escape(mb_mapObj[i].wms[ii].gui_wms_sldurl) + "&";
 						newMapURL += temp;
 					}
 					//prompt("",newMapURL);



More information about the Mapbender_commits mailing list