<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<SPAN lang=EN-GB>
Hi,<BR>
I am having trouble viewing my map correctly via open layers, the map is zoomed in very close I cannot zoom out anymore. <BR>
I have tried different zoom extents however it is the same. Can anyone tell me where I am going wrong is it the epsg code? If I enter a different epsg code I just see the background colour of my map file.<BR>
Andy help greatly appreciated<BR>
My map and openlayers files are below<BR>
Thanks<BR>
&nbsp;<BR>
&nbsp;<BR>
MAP<BR>
<BR>
NAME UK1<BR>
PROJECTION<BR>
"init=epsg:4326"<BR>
END <BR>
SIZE 1600 1200<BR>
IMAGECOLOR 153 204 255<BR>
IMAGETYPE JPEG<BR>
SHAPEPATH "http://localhost/openlayers/data/"<BR>
EXTENT -8883850.321101 -310000.000000 15483850.321101 12710000.000000<BR>
UNITS METERS<BR>
<BR>
<BR>
WEB<BR>
TEMPLATE "http://localhost/openlayers/examples/test.html"<BR>
LOG "\ms4w\tmp\ms_tmp\log.txt"<BR>
IMAGEPATH "\ms4w\tmp\ms_tmp\"<BR>
IMAGEURL "/ms_tmp/"<BR>
METADATA<BR>
'wms_title' "wms demo"<BR>
'wcs_onlineresource' "http://127.0.0.1./cgi-bin/mapserv?map=/ms4w/apps/openlayers-2.5/data/uk1.map&amp;"<BR>
'wms_srs' "epsg:4326 epsg:4269"<BR>
END<BR>
END<BR>
LAYER<BR>
<BR>
NAME "UK"<BR>
METADATA<BR>
'wms_title' "wms_demo"<BR>
END<BR>
STATUS DEFAULT<BR>
TYPE raster<BR>
TILEINDEX "map"<BR>
TILEITEM "Location"<BR>
PROJECTION<BR>
"init=epsg:4326"<BR>
END<BR>
CLASS<BR>
STYLE<BR>
COLOR 0 0 0<BR>
END<BR>
LABEL<BR>
COLOR 0 0 0<BR>
SIZE SMALL<BR>
END<BR>
<BR>
END<BR>
<BR>
END<BR>
END<BR>
&nbsp;<BR>
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<BR>
&lt;head&gt;MAPPING TEST<BR>
&lt;style type="text/css"&gt;<BR>
#map {<BR>
width: 90%;<BR>
height: 90%;<BR>
border: 8px solid black;<BR>
}<BR>
&lt;/style&gt;<BR>
&lt;script src="../lib/OpenLayers.js"&gt;&lt;/script&gt;<BR>
&lt;script type="text/javascript"&gt;<BR>
var zoom = 1;<BR>
var bounds = new OpenLayers.Bounds(-888385.321101, -31000.000000, 1548385.321101, 1271000.000000); <BR>
var map, layer;<BR>
<BR>
function init(){<BR>
map = new OpenLayers.Map('map', { maxExtent: bounds });<BR>
map.addControl(new OpenLayers.Control.PanZoomBar());<BR>
map.addControl(new OpenLayers.Control.OverviewMap());<BR>
map.addControl(new OpenLayers.Control.MousePosition());<BR>
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", <BR>
"http://127.0.0.1/cgi-bin/mapserv.exe?", { layers: 'uk', map: '/ms4w/apps/openlayers-2.5/data/uk1.map'},<BR>
{ gutter: 15 }); <BR>
map.addLayer(layer);<BR>
map.zoomToExtent(bounds);<BR>
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); <BR>
<BR>
}<BR>
&lt;/script&gt;<BR>
&lt;/head&gt;<BR>
&lt;body onload="init()"&gt;<BR>
&lt;div id="map"&gt;&lt;/div&gt;<BR>
&lt;/body&gt;<BR>
&lt;/html&gt;<BR></SPAN><br /><hr />Share your memories online with anyone you want. <a href='http://clk.atdmt.com/UKM/go/134665338/direct/01/' target='_new'>Learn more.</a></body>
</html>