[OpenLayers-Dev] Problem with Alpha Layer

Jochen Grefe jochen.grefe at ingenieurteam2.com
Sat Sep 29 02:41:02 EDT 2007


I have a problem with a layer (kamap in particular) with alpha set to
true.
Perhaps I found the error in Util.js.

OpenLayers.Util.createAlphaImageDiv is called with delayDisplay=true
but OpenLayers.Util.createImage is called with delayDisplay=false
So no load observer for this image is created and it is forever
img.style.display = "none"; 
So my solution is:calling OpenLayers.Util.createImage with parameter
delayDisplay.

Index: Util.js
===================================================================---
Util.js	(revision 4626)
+++ Util.js	(working copy)
@@ -447,7 +447,7 @@
     
     var div = OpenLayers.Util.createDiv();
     var img = OpenLayers.Util.createImage(null, null, null, null, null,
null, 
-                                          null, false);
+                                          null, delayDisplay);
     div.appendChild(img);
 
     if (delayDisplay) {
===================================================================

Best regards,
Jochen




More information about the Dev mailing list