svn commit: r423 - trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList.php

astrid_emde at osgeo.org astrid_emde at osgeo.org
Mon Jun 12 10:27:25 EDT 2006


Author: astrid_emde
Date: 2006-06-12 14:27:25+0000
New Revision: 423

Modified:
   trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList.php

Log:
use mb_getConjunctionCharacter(pointer_name)

Modified: trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList.php?view=diff&rev=423&p1=trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList.php&p2=trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList.php&r1=422&r2=423
==============================================================================
--- trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList.php	(original)
+++ trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList.php	2006-06-12 14:27:25+0000
@@ -56,10 +56,9 @@
 <script type="text/javascript">
 <!--
 function mod_addWMSfromfilteredList(pointer_name,version){
-	var mywms = pointer_name; 
-	if(mywms.indexOf("?") > -1){pointer_name += "&";}
-	if(mywms.indexOf("?") == -1){pointer_name += "?";}
-  	
+
+	pointer_name=pointer_name + window.opener.mb_getConjunctionCharacter(pointer_name);
+	
 	if (version == '1.0.0'){
 		var cap = pointer_name + "REQUEST=capabilities&WMTVER=1.0.0";
 		var load = cap;
@@ -72,6 +71,7 @@
 		var cap = pointer_name + "REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1";
 		var load = cap;
 	}  
+	//alert (load);
 
 	if(load){
 		if(load.charAt(0) == '/' && load.charAt(1) == 'c'){




More information about the Mapbender_commits mailing list