[mapserver-users] HELLLPPP!!!!
pcreso at pcreso.com
pcreso at pcreso.com
Thu Apr 5 20:04:01 PDT 2012
There are many places there could be a problem
I suggest you start by entering the URL for the capabilities document into your browser & make sure that is actually working.
http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/QGISMap/QGISMap.map&service=WMS&request=getcapabilities&version=1.3.0
Depending on what this says you can probably work through the problem. It should list the map layer you are asking for.
Brent Wood
--- On Fri, 4/6/12, Özgür Arslan <ozgurarslan81 at hotmail.com> wrote:
From: Özgür Arslan <ozgurarslan81 at hotmail.com>
Subject: [mapserver-users] HELLLPPP!!!!
To: mapserver-users at lists.osgeo.org
Date: Friday, April 6, 2012, 2:38 PM
Hi All
I have a map file called QGISMap.map I am trying to make it appear in a frame that created by using open layers. But when I run the page it only shows a empty frame. Why it doesn't show the map? Can someone help me please? Codes are below:
<!-- MapServer Template -->
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Tutorial - Basic Map Setup</title>
<script src="http://openlayers.org/dev/lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer;
function init(){
map = new OpenLayers.Map( 'map' );
layer = new OpenLayers.Layer.MapServer("OpenLayers WMS",
"http://localhost/cgi-bin/mapserv.exe", {map: 'C:/wwwroot/QGISMap/QGISMap.map'} );
map.addLayer([wms]);
map.zoomToMaxExtent();
</script>
<style>
@media screen
{
#map{width: 500px; height:500px; border: 2px solid black;}
}
</style>
</head>
<body onload="init()">
<h3>OpenLayers Tutorial - Basic Map Setup</h3>
<div id="map"></div>
</body>
</html>
-----Inline Attachment Follows-----
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120405/313be1eb/attachment.htm>
More information about the MapServer-users
mailing list