]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/pngfix.js
Don't try and apply pngfix to OpenLayers tile images.
[rails.git] / public / javascripts / pngfix.js
index 0fdefc6b25636f42611b0a4fedafaa307852db9a..e6ca5d6f773d35af71ffe40b9a1d3e8537e05b99 100644 (file)
@@ -4,7 +4,7 @@ function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or high
   {
     var img = document.images[i]
       var imgName = img.src.toUpperCase()
-      if (imgName.indexOf('.PNG') > 0)
+      if (imgName.indexOf('.PNG') > 0 && !img.id.match(/^OpenLayers/))
       {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
           var imgClass = (img.className) ? "class='" + img.className + "' " : ""