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( "Cities",<br> "<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>",<br>
{layers: "cities", transparent: "true", isBaseLayer: "false"});<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"><<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>></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'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( "Clouds",<br>
<br>
"<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>",<br>
{layers: "clouds", isBaseLayer: "true"});<br>
<br>
<br>
This is my map file.<br>
<br>
NAME "WMS-test"<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 "PROJ_LIB" "C:/ms4w/proj/nad/"<br>
<br>
<br>
WEB <br>
IMAGEPATH "C:/ms4w/tmp/"<br>
IMAGEURL "/ms_tmp/"<br>
METADATA<br>
"wms_title" "WMS Demo Server" ##required<br>
"wms_onlineresource" "<a href="http://localhost:7788/cgi-bin/mapserv.exe" target="_blank">http://localhost:7788/cgi-bin/mapserv.exe</a>?" ##required<br>
"wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" END<br>
END<br>
<br>
PROJECTION<br>
"init=epsg:42304" ##required<br>
END<br>
<br>
#<br>
# Start of layer definitions<br>
#<br>
<br>
LAYER<br>
NAME clouds<br>
METADATA<br>
"wms_title" "Clouds" ##required<br>
END<br>
TYPE RASTER<br>
STATUS ON<br>
PROJECTION<br>
"init=epsg:42304" ##recommended<br>
END<br>
DATA "../data/test/day_clouds.tif"<br>
END<br>
<br>
END # Map File<br>
<br>
<br>
<br>
<br>
<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>