<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Jason,<br>
<br>
For OpenLayers and Mapserver to co-op your mapfile has to expose itself
as a WMS server.<br>
<br>
For this read the manual at:
<a class="moz-txt-link-rfc2396E" href="http://mapserver.gis.umn.edu/docs/howto/wms_server"><http://mapserver.gis.umn.edu/docs/howto/wms_server></a><br>
<br>
Good luck!<br>
<br>
<br>
Jason Allen schreef:
<blockquote
cite="mid:4f7a14590802231313l61d38df2ne43146bfd037f6a9@mail.gmail.com"
type="cite">I just started working with MapServer yesterday and it
rocks!<br>
<br>
I've been learning my around with the MapServer 5.x Demo App (Itasca)
and while it works fine using HTML templates, I can't get it to play
nicely with OpenLayers. OpenLayers simply returns blank map tiles.<br>
<br>
The itasca.map file is stock except that I uncommented the projection
info:<br>
PROJECTION<br>
"init=epsg:26915"<br>
END<br>
<br>
My OpenLayers setup is very simple as well:<br>
<br>
function init(){<br>
map = new OpenLayers.Map( 'map' );<br>
layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", <br>
"<a moz-do-not-send="true"
href="http://dev.312pulse.com/cgi-bin/mapserv?map=itasca.map">http://dev.312pulse.com/cgi-bin/mapserv?map=itasca.map</a>",
{layers: 'drgs,lakespy2'},<br>
{gutter: 15});<br>
map.addLayer(layer);<br>
map.zoomToMaxExtent();<br>
map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>
}<br>
<br>
<br>
Does anyone have any idea why OpenLayers isn't displaying any data, or
how to troubleshoot this issue? MapServer logging isn't the most
verbose, and I haven't been able to track down any other clues.<br>
<br>
My OpenLayers test page (doesn't work):<br>
<a moz-do-not-send="true" href="http://dev.312pulse.com/map.html">http://dev.312pulse.com/map.html</a><br>
<br>
Workshop demo (works):<br>
<a moz-do-not-send="true" href="http://dev.312pulse.com/workshop/">http://dev.312pulse.com/workshop/</a><br>
<br>
Thanks,<br>
<br>
Jason<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
</body>
</html>