It WORKS~,Thanks,Julien!<br>Although there still remains some little problems. But I know it will be alright. It&#39;s a new beginning to me. Tks again.<br><br><br><div class="gmail_quote">2008/5/6 Julien-Samuel Lacroix &lt;<a href="mailto:jlacroix@mapgears.com">jlacroix@mapgears.com</a>&gt;:<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>
Try with the extents of your mapfile in the maxExtent option:<br>
var bounds = new OpenLayers.Bounds(114.327181, 30.454108, 114.363140, 30.495525)<br>
map = new OpenLayers.Map( &#39;map&#39;, {maxExtent: bounds});<br>
<br>
Then after addLayer zoom on that extent:<br>
map.addLayer(layer);<br>
map.zoomToExtent(bounds);<br>
<br>
Julien<br>
<br></blockquote></div><br>