[Mapbender-commits] r5626 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Feb 24 06:47:25 EST 2010
Author: astrid_emde
Date: 2010-02-24 06:47:23 -0500 (Wed, 24 Feb 2010)
New Revision: 5626
Modified:
trunk/mapbender/http/javascripts/geometry.js
Log:
Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js 2010-02-24 11:38:19 UTC (rev 5625)
+++ trunk/mapbender/http/javascripts/geometry.js 2010-02-24 11:47:23 UTC (rev 5626)
@@ -1799,17 +1799,18 @@
if (typeof offsetY !== "number") {
offsetY = -40;
}
- if(ie){
- var newImg = document.createElement("img");
+// if(ie){
+// var newImg = document.createElement("img");
var newImgTop = y + offsetY;
var newImgLeft = x + offsetX;
- that.canvasDivTag.getTag().innerHTML = "<img name='mapSymbol' id='mapSymbol' src='" +
+ $(that.canvasDivTag.getTag()).html("<img name='mapSymbol' id='mapSymbol' src='" +
url + "' style='position:absolute;top:" + newImgTop + ";left:" + newImgLeft +
";" + (width !== undefined ? "width:" + width + "px;" : "") +
(height !== undefined ? "height:" + height + "px;" : "") +
- ";z-index:100'/>";
- }
- else{
+ ";z-index:100;display:none'/>").show();
+// }
+// else{
+/*
var newImg = document.createElement("img");
newImg.src = url;
newImg.className = "mapsymbol";
@@ -1826,7 +1827,8 @@
newImg.style.height = height;
}
newImg.style.zIndex = 100;
- }
+*/
+// }
};
/**
More information about the Mapbender_commits
mailing list