[Mapbender-commits] r3232 - branches/beck_dev_25/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 12 05:41:27 EST 2008


Author: beck
Date: 2008-11-12 05:41:26 -0500 (Wed, 12 Nov 2008)
New Revision: 3232

Modified:
   branches/beck_dev_25/http/javascripts/mod_dynamicOverview.php
   branches/beck_dev_25/http/javascripts/mod_setBackground.php
Log:


Modified: branches/beck_dev_25/http/javascripts/mod_dynamicOverview.php
===================================================================
--- branches/beck_dev_25/http/javascripts/mod_dynamicOverview.php	2008-11-12 09:33:36 UTC (rev 3231)
+++ branches/beck_dev_25/http/javascripts/mod_dynamicOverview.php	2008-11-12 10:41:26 UTC (rev 3232)
@@ -166,7 +166,18 @@
 	if(mod_dynamicOverviewSwitch && frameName == arrayTargets[1]){
 		wms[mod_dynamicOverview_wmsIndex].gui_wms_visible = mod_dynamicOverviewSwitch;
 		
-	}	
+	}
+	
+	if(parent.document.setBackground.mod_setBackground_list.options[parent.document.setBackground.mod_setBackground_list.selectedIndex].value != mod_dynamicOverview_wmsIndex) {
+		wms[mod_dynamicOverview_wmsIndex].gui_wms_visible = 0;
+	}
+	else {
+		for(var i = 0; i < parent.document.setBackground.mod_setBackground_list.options.length; i++) {
+			if(i != mod_dynamicOverview_wmsIndex) {
+				wms[i].gui_wms_visible = 0;
+			}
+		}
+	}
 }
 function mod_dynamicOverviewGetMaxExtent(wms, srs){
 	var re = false;

Modified: branches/beck_dev_25/http/javascripts/mod_setBackground.php
===================================================================
--- branches/beck_dev_25/http/javascripts/mod_setBackground.php	2008-11-12 09:33:36 UTC (rev 3231)
+++ branches/beck_dev_25/http/javascripts/mod_setBackground.php	2008-11-12 10:41:26 UTC (rev 3232)
@@ -55,9 +55,9 @@
 	mod_setBackground_active = ind;
 }
 
-function mod_setBackground_change(obj){	
-	wms[mod_setBackground_active].gui_wms_visible = 0;
+function mod_setBackground_change(obj){
+	wms[mod_dynamicOverview_wmsIndex].gui_wms_visible = 0;
 	wms[obj.value].gui_wms_visible = 2;
 	mod_setBackground_active = obj.value;
-	zoom(mod_setBackground_target,true, 1.0); 
+	zoom(mod_setBackground_target,true, 1.0);
 }



More information about the Mapbender_commits mailing list