Hi,<br><br>Thanks for your quick response.<br><br>I opened the url in a new tab, but no error messages. No entries in the error log. <br><br>I have another layer which is generated from the same map file, which I create as a WMS layer. It shows some cities in the map. But it works for all the zoom levels.<br>
<br>var cities = new OpenLayers.Layer.WMS( &quot;Cities&quot;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;<a href="http://localhost:7788/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/openlayer/map/wms-test.map">http://localhost:7788/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/openlayer/map/wms-test.map</a>&quot;,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {layers: &quot;cities&quot;, transparent: &quot;true&quot;, isBaseLayer: &quot;false&quot;});<br><br>My problematic layer is a raster layer.<br><br>Any idea???<br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 8:12 PM, Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
If you open the image url in a new tab, do you get any error message ? If not, see the error logs in ms4w/Apache/logs. You might find what&#39;s wrong there.<br>
<br>
Regards,<br>
<br>
Alexandre<div><div></div><div class="Wj3C7c"><br>
<br>
amila.maha wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I am trying to display a map from MapServer in OpenLayer. But it is<br>
displayed only when the zoom level is zero. When the zoom level is some<br>
other level, only a white image is shown. <br>
Can somebody help me with this??<br>
<br>
This is my javascript code segment for creating the map.<br>
<br>
var map_sv = new OpenLayers.Layer.MapServer( &quot;Clouds&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<br>
&quot;<a href="http://localhost:7788/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/openlayer/map/wms-test.map" target="_blank">http://localhost:7788/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/openlayer/map/wms-test.map</a>&quot;,<br>

 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{layers: &quot;clouds&quot;, isBaseLayer: &quot;true&quot;});<br>
<br>
<br>
This is my map file.<br>
<br>
NAME &quot;WMS-test&quot;<br>
STATUS ON<br>
SIZE 512 256<br>
SYMBOLSET ../etc/symbols.sym<br>
EXTENT -180 -90 180 90<br>
UNITS METERS<br>
IMAGECOLOR 255 255 255<br>
IMAGETYPE png<br>
FONTSET ../etc/fonts.txt<br>
CONFIG &quot;PROJ_LIB&quot; &quot;C:/ms4w/proj/nad/&quot;<br>
<br>
<br>
WEB &nbsp; &nbsp; <br>
 &nbsp;IMAGEPATH &quot;C:/ms4w/tmp/&quot;<br>
 &nbsp;IMAGEURL &quot;/ms_tmp/&quot;<br>
 &nbsp;METADATA<br>
 &nbsp; &nbsp;&quot;wms_title&quot; &nbsp; &nbsp; &quot;WMS Demo Server&quot; &nbsp;##required<br>
 &nbsp; &nbsp;&quot;wms_onlineresource&quot; &quot;<a href="http://localhost:7788/cgi-bin/mapserv.exe" target="_blank">http://localhost:7788/cgi-bin/mapserv.exe</a>?&quot; &nbsp;##required<br>
 &nbsp; &nbsp;&quot;wms_srs&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326&quot; &nbsp; &nbsp; &nbsp;END<br>
END<br>
<br>
PROJECTION<br>
 &nbsp;&quot;init=epsg:42304&quot; &nbsp; ##required<br>
END<br>
<br>
#<br>
# Start of layer definitions<br>
#<br>
<br>
LAYER<br>
&nbsp;NAME clouds<br>
&nbsp;METADATA<br>
 &nbsp; &nbsp;&quot;wms_title&quot; &nbsp; &nbsp;&quot;Clouds&quot; &nbsp; ##required<br>
 &nbsp;END<br>
&nbsp;TYPE RASTER<br>
&nbsp;STATUS ON<br>
&nbsp;PROJECTION<br>
 &nbsp; &nbsp;&quot;init=epsg:42304&quot; &nbsp; ##recommended<br>
&nbsp;END<br>
&nbsp;DATA &quot;../data/test/day_clouds.tif&quot;<br>
END<br>
<br>
END # Map File<br>
<br>
<br>
<br>
<br>
 &nbsp;<br>
</blockquote>
<br>
<br>
-- <br></div></div>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</blockquote></div><br>