svn commit: r668 - trunk/mapbender/http/javascripts/map.php
christoph at osgeo.org
christoph at osgeo.org
Wed Jul 19 09:57:40 EDT 2006
Author: christoph
Date: 2006-07-19 13:57:40+0000
New Revision: 668
Modified:
trunk/mapbender/http/javascripts/map.php
Log:
fixed a bug in restateLayers
replaced "this" by "mb_mapObj[ind]."
Modified: trunk/mapbender/http/javascripts/map.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/map.php?view=diff&rev=668&p1=trunk/mapbender/http/javascripts/map.php&p2=trunk/mapbender/http/javascripts/map.php&r1=667&r2=668
==============================================================================
--- trunk/mapbender/http/javascripts/map.php (original)
+++ trunk/mapbender/http/javascripts/map.php 2006-07-19 13:57:40+0000
@@ -543,7 +543,7 @@
}
}
function mb_restateLayers(frameName,wms_id){
- //alert(frameName + " / " + wms_id);
+ alert(frameName + " / " + wms_id);
var ind = getMapObjIndexByName(frameName);
for(var i=0; i<mb_mapObj[ind].wms.length; i++){
if(mb_mapObj[ind].wms[i].wms_id == wms_id){
@@ -553,16 +553,16 @@
var styles = "";
var querylayers = "";
for(var ii=0; ii<mb_mapObj[ind].wms[i].objLayer.length; ii++){
- if(this.wms[i].objLayer[ii].gui_layer_visible == 1 && ii>0){
+ if(mb_mapObj[ind].wms[i].objLayer[ii].gui_layer_visible == 1 && ii>0){
if(cnt_layers > 0){layers += ","; styles += ","; }
- layers += wms[i].objLayer[ii].layer_name;
- //alert(wms[i].objLayer[ii].layer_name);
+ layers += mb_mapObj[ind].wms[i].objLayer[ii].layer_name;
+ //alert(mb_mapObj[ind].wms[i].objLayer[ii].layer_name);
styles += "";
cnt_layers++;
}
- if(this.wms[i].objLayer[ii].gui_layer_querylayer == 1 && ii>0){
+ if(mb_mapObj[ind].wms[i].objLayer[ii].gui_layer_querylayer == 1 && ii>0){
if(cnt_querylayers > 0){querylayers += ",";}
- querylayers += wms[i].objLayer[ii].layer_name;
+ querylayers += mb_mapObj[ind].wms[i].objLayer[ii].layer_name;
cnt_querylayers++;
}
mb_mapObj[ind].layers[i] = layers;
@@ -795,7 +795,7 @@
*/
}
function handleSelectedLayer_array(mapObj, array_wms, array_layer, type, status){
- //alert(mapObj+" / "+array_wms[0]+" / "+ array_layer[0]+" / "+ type+" / "+ status);
+ alert(mapObj+" / "+array_wms[0]+" / "+ array_layer[0]+" / "+ type+" / "+ status);
var ind = getMapObjIndexByName(mapObj);
for(var j=0; j<array_wms.length; j++){
for(var i=0; i<mb_mapObj[ind].wms.length; i++){
More information about the Mapbender_commits
mailing list