<span class="gmail_quote"></span>Hi all,<br><br>I&#39;m currently trying to get the co-ordinates of the origin of the map in order to utilise the geoserver meta tiler extension to WMS see: <a href="http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters</a>&nbsp; These co-ordinates must be included in the WMS URL so I&#39;m doing the following:<br><br>...<br><span>var map;<br>function init() 
<br>{<br>var options =
{resolutions:[72,36,18,9.6,4.8,2.4,1.2,0.6,0.3,0.15,0.125],maxExtent:new OpenLayers.Bounds(0,0,2000000,2000000),maxResolution:&#39;auto&#39;,units:&#39;meters&#39;,projection:&#39;EPSG:27700&#39;,controls:[]};<br>map
= new OpenLayers.Map( $(&#39;map&#39;), options );<br>map.setCenter(new
OpenLayers.LonLat(543443,255213), 7);<br>var olextent = map.getExtent();<br>var
origincoords=toString(olextent.bottom) + &#39;,&#39; + toString(olextent.left);<br>...<br><br>and I&#39;m getting the following error:</span><br><br><span><div>maxExtent has no properties</div><div><div><a>
isValidLonLat</a>(<a><span>lon=543443,lat=255213</span> lon=<span>543443</span> lat=<span>255213</span> CLASS_NAME=<span>
OpenLayers.LonLat</span></a><span></span>)<span>Map.js (line 933)</span></div><div><a>setCenter</a>(<a>
<span>lon=543443,lat=255213</span> lon=<span>543443</span> lat=<span>255213</span> CLASS_NAME=<span>OpenLayers.LonLat</span></a><span>
, </span><span>7</span><span>, </span><span>undefined</span><span>, </span><span>
undefined</span><span></span>)<span>Map.js (line 804)</span></div><div><a>init</a>()<span>
classexample.php (line 11)</span></div><div><a>onload</a>(<a>load </a><span></span>)<span>
classexample.php (line 1)</span></div></div><div><span>valid = 
maxExtent.containsLonLat(lonlat);<br><br>Any ideas?<br><br>cheers,<br><br>Tom<br>        </span></div></span><br><br>
<br>