[Mapbender-commits] r4409 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 21 10:47:17 EDT 2009


Author: marc
Date: 2009-07-21 10:47:16 -0400 (Tue, 21 Jul 2009)
New Revision: 4409

Modified:
   branches/2.6/http/javascripts/map_obj.js
Log:
(http://trac.osgeo.org/mapbender/ticket/492)==>remove the last ampersant of GetMap Req. 

Modified: branches/2.6/http/javascripts/map_obj.js
===================================================================
--- branches/2.6/http/javascripts/map_obj.js	2009-07-21 14:09:40 UTC (rev 4408)
+++ branches/2.6/http/javascripts/map_obj.js	2009-07-21 14:47:16 UTC (rev 4409)
@@ -623,7 +623,10 @@
 		if (currentWms.gui_wms_sldurl !== "") {
 			url += "&SLD=" + escape(currentWms.gui_wms_sldurl) + "&";
 		}
-		return url;
+		//remove the last ampersant (&) of the mapurl
+		url = url.substr(0, url.length-1);
+    
+    return url;
 	}
 	
 	/**



More information about the Mapbender_commits mailing list