svn commit: r712 - trunk/mapbender/http/javascripts/map.php
astrid_emde at osgeo.org
astrid_emde at osgeo.org
Fri Jul 28 09:52:10 EDT 2006
Author: astrid_emde
Date: 2006-07-28 13:52:10+0000
New Revision: 712
Modified:
trunk/mapbender/http/javascripts/map.php
Log:
changes in function handleSelectedLayer_array
mb_mapObj is used instead af wms
Modified: trunk/mapbender/http/javascripts/map.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/map.php?view=diff&rev=712&p1=trunk/mapbender/http/javascripts/map.php&p2=trunk/mapbender/http/javascripts/map.php&r1=711&r2=712
==============================================================================
--- trunk/mapbender/http/javascripts/map.php (original)
+++ trunk/mapbender/http/javascripts/map.php 2006-07-28 13:52:10+0000
@@ -249,7 +249,6 @@
function mb_swapWmsByIndex(mapObj_ind, indexA, indexB) {
if (indexA != indexB && indexA >= 0 && indexA < mb_mapObj[mapObj_ind].wms.length && indexB >= 0 && indexB < mb_mapObj[mapObj_ind].wms.length) {
- var upper = new Object();
upper = mb_mapObj[mapObj_ind].wms[indexA];
mb_mapObj[mapObj_ind].wms[indexA] = mb_mapObj[mapObj_ind].wms[indexB];
mb_mapObj[mapObj_ind].wms[indexB] = upper;
@@ -599,7 +598,7 @@
str_titles += mb_mapObj[mObj].wms[wmsObj].objLayer[i].layer_title;
str_parent += mb_mapObj[mObj].wms[wmsObj].objLayer[i].layer_parent;
if(mb_mapObj[mObj].wms[wmsObj].objLayer[i].layer_style.length>0){
- str_legendurls += mb_mapObj[mObj].wms[wmsObj].objLayer[i].layer_style[0]["legendurl"] ;
+ str_legendurls += mb_mapObj[mObj].wms[wmsObj].objLayer[i].layer_style[0]["legendurl"] ;
}
cnt_layer++;
}
@@ -802,14 +801,14 @@
if(mb_mapObj[ind].wms[i].wms_id == array_wms[j]){
var check = false;
for(var ii=0; ii<mb_mapObj[ind].wms[i].objLayer.length; ii++){
- if(wms[i].wms_id == array_wms[j] && wms[i].objLayer[ii].layer_name == array_layer[j]){
+ if(mb_mapObj[ind].wms[i].wms_id == array_wms[j] && mb_mapObj[ind].wms[i].objLayer[ii].layer_name == array_layer[j]){
if(type == "visible"){
- wms[i].objLayer[ii].gui_layer_visible = parseInt(status);
- //alert(wms[i].objLayer[ii].layer_name);
+ mb_mapObj[ind].wms[i].objLayer[ii].gui_layer_visible = parseInt(status);
+ //alert(mb_mapObj[ind].wms[i].objLayer[ii].layer_name);
check = true;
}
- if(type == "querylayer" && (wms[i].objLayer[ii].gui_layer_queryable == "1" || wms[i].objLayer[ii].gui_layer_queryable == 1)){
- wms[i].objLayer[ii].gui_layer_querylayer = parseInt(status);
+ if(type == "querylayer" && (mb_mapObj[ind].wms[i].objLayer[ii].gui_layer_queryable == "1" || mb_mapObj[ind].wms[i].objLayer[ii].gui_layer_queryable == 1)){
+ mb_mapObj[ind].wms[i].objLayer[ii].gui_layer_querylayer = parseInt(status);
}
}
}
@@ -821,7 +820,7 @@
if(check == true){
if(mb_mapObj[ind].wms[i].gui_wms_visible == 1){
- setSingleMapRequest(mapObj,wms[i].wms_id);
+ setSingleMapRequest(mapObj,mb_mapObj[ind].wms[i].wms_id);
//alert('sSMR');
}
}
More information about the Mapbender_commits
mailing list