Thanks for the reply Mario.  See below...

On 07/12/2012 16:10, Mario Danelli wrote:
> Dear Tim,
> 
> try with the following:

<snip/>

> You have to add the line:
> OpenLayers.Util.onImageLoadErrorColor = "transparent";

Thanks.  I tried it, but it didn't seem to have an effect.

> You have to download the script file into your web server and reference 
> them:
>   <script type="text/javascript"
>         src="./js_test/OpenLayers.js"></script>
>      <script type="text/javascript"
>         src="./js_test/OpenStreetMap.js">
>      </script>
>      <script type="text/javascript"
>        src="./js_test/map_utils.js">
>      </script>

"Have to", really?  I'm happy to server them up from my webserver, but
for this simple test I assume it is ok to directly link to the js files.

In my simple example I seem to be picking up the js code successfully.

> Where you saw pink tiles you will see only a transparent tile.

I still see pink tiles after adding onImageLoadErrorColor =
"transparent" :-(

> You could delete also these with a css customization on the OpenLayers 
> css files (that you have to download) on the following class:
> 
> .olImageLoadError {
>      background-color: pink;
>      opacity: 0.0;
>      filter: alpha(opacity=0); /* IE */
> }

I'll keep that in reserve for the moment.

I've been staring at the source for the openseamaps.org full screen map
and trying to figure out how that works with avoiding the missing tiles.

> Hoping it's useful.

Thanks again for your input.

Regards,
Tim


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Openseamap-maps mailing list
Openseamap-maps@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openseamap-maps

Antwort per Email an