[OpenLayers-Users] Broken image for no tile, on Chrome
Andreas Hocevar
ahocevar at opengeo.org
Tue Nov 10 06:03:10 EST 2009
Warren Vick wrote:
> I've just noticed that Chrome has a different behaviour to other browsers when OL is using a TMS layer and there is no tile present. While IE and FF show nothing, Chrome shows an ugly broken image icon. Anyone know how this can be avoided?
>
For OpenLayers 2.8, set the following after the script tag that loads
OpenLayers.js:
OpenLayers.Util.onImageLoadErrorColor = "transparent";
For OpenLayers SVN (trunk), set the following as your last CSS
definition, and after
the script tag that loads OpenLayers.js:
.olImageLoadError {
background-color: transparent;
}
Regards,
Andreas.
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list