It WORKS~,Thanks,Julien!
Although there still remains some little problems. But I know it will be
alright. It's a new beginning to me. Tks again.


2008/5/6 Julien-Samuel Lacroix <[EMAIL PROTECTED]>:

> Hi,
>
> Try with the extents of your mapfile in the maxExtent option:
> var bounds = new OpenLayers.Bounds(114.327181, 30.454108, 114.363140,
> 30.495525)
> map = new OpenLayers.Map( 'map', {maxExtent: bounds});
>
> Then after addLayer zoom on that extent:
> map.addLayer(layer);
> map.zoomToExtent(bounds);
>
> Julien
>
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to