[Mapbender-commits] r1908 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Dec 10 07:53:29 EST 2007
Author: verenadiewald
Date: 2007-12-10 07:53:26 -0500 (Mon, 10 Dec 2007)
New Revision: 1908
Modified:
trunk/mapbender/http/javascripts/map.js
Log:
function setMapRequest: removed syntax error from setting z-index for different layers
Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js 2007-12-10 10:03:36 UTC (rev 1907)
+++ trunk/mapbender/http/javascripts/map.js 2007-12-10 12:53:26 UTC (rev 1908)
@@ -735,7 +735,6 @@
if (mb_mapObj[i].wms[ii].gui_wms_mapopacity != 1) {
var cadenaOpacity = "opacity:"+mb_mapObj[i].wms[ii].gui_wms_mapopacity+"; Filter: Alpha(Opacity="+mb_mapObj[i].wms[ii].gui_wms_mapopacity*100+"); -moz-opacity:"+mb_mapObj[i].wms[ii].gui_wms_mapopacity+" ; -khtml-opacity:"+mb_mapObj[i].wms[ii].gui_wms_mapopacity;
newMapRequest += "<div id='"+myDivId+"' style=\"position:absolute; top:0px; left:0px; z-index:"+ii+";"+cadenaOpacity+"\">";
-
}
// IE problem: layers that are already transparent (defined in map file)
// are sabotaged by the Mapbender opacity setting...
@@ -745,7 +744,7 @@
// solution needed for both WMS and Mapbender transparency in IE
// see:
else {
- newMapRequest += "<div id='"+myDivId+"' style='position:absolute; top:0px; left:0px; z-index:'"+ii+"'>";
+ newMapRequest += "<div id='"+myDivId+"' style='position:absolute; top:0px; left:0px; z-index:"+ii+"'>";
}
newMapRequest += "<img id='"+myMapId+"' name='mapimage' src='";
@@ -818,7 +817,6 @@
}
}
}
- //console.log(newMapRequest);
//prompt("",newMapRequest);
writeTag(mb_mapObj[i].frameName,mb_mapObj[i].elementName,newMapRequest);
}
@@ -841,7 +839,6 @@
for(var ii=0; ii<mb_mapObj[i].wms.length; ii++){
var myDivId = "div_" + ii;
var myMapId = "map_" + ii;
-
//disable Layer which are out of scale
var validLayers = mb_checkScale(frameName,i,ii);
var layerNames = validLayers.toString();
@@ -913,7 +910,6 @@
newMapRequest = "<img id='"+myMapId+"' name='mapimage' src='" + mb_trans.src;
newMapRequest += "' width='"+mb_mapObj[i].width+"' height='"+mb_mapObj[i].height+"' border='0'>";
}
-
//prompt("",newMapRequest);
if(mb_log){
var tmp = eval(mb_log + "('" + newMapURL + "','" + ts + "')");
More information about the Mapbender_commits
mailing list