Thank You for your Help,<br><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear List,<br>
</blockquote>
Hi!<div class="im"><br><br></div>>You can take a look at [1] where this script is used.</blockquote><div>        I have tried by changing the position of script, but there is no effect </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there any other way to show the default image in empty tiles ?<br>
Please Help..<br>
</blockquote>
<br></div>>It seems this is done by the code snippet around OpenLayers.Util.onImageLoadError. There is a if-switch that uses this.src. to limit the error->image to tiles loaded from *.<a href="http://openstreetmap.org" target="_blank">openstreetmap.org</a>. You could override this behaviour by putting a <script />-Tag after the <script />-Tag that loads >OpenStreetMap.js like this:<br>


<br>
<script type="text/javascript"><br>
OpenLayers.Util.onImageLoadError = function() {<br>
  this.src = "/url/to/your/error.png<br>
};<br>
</script><br>
  I have edited the file by the code given below:<br></blockquote><div>     <script type="text/javascript"></div><div>     OpenLayers.Util.onImageLoadError=function(){</div><div><br></div><div>     <a href="http://www.openstreetmap.org/openlayers/OpenStreetMap.js">http://www.openstreetmap.org/openlayers/OpenStreetMap.js</a>"=<a href="http://www.openstreetmap.org/openlayers/img/404.png">http://www.openstreetmap.org/openlayers/img/404.png</a></div>

<div>     };</div><div>     </script></div><div>      but this is also not working.</div><div>      Please check is there any mistake in my code   </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<br>
Peter<br>
<br>
[1] <<a href="http://toolserver.org/~osm/styles/" target="_blank">http://toolserver.org/~osm/styles/</a>><br>
</blockquote></div><br><br clear="all"><br>-- <br>With Kind Regards<br>Parveen Arora<br><a href="http://osmpunjab.co.cc">osmpunjab.co.cc</a><br><br>