Thanks to all, i will try to find a working example. it is hard to find solutions to your problems when there is limited source. and being new in the field makes your job even harder. language is another problem and etc. <br>

<br>anyway, thanks again.<br><br>kind regards<br><br><div class="gmail_quote">2012/5/9 Tim-Hinnerk Heuer <span dir="ltr">&lt;<a href="mailto:th.heuer@gmail.com" target="_blank">th.heuer@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Strictly speaking this is not a topic for the dev list, I believe. However, have you tried to look at the maxExtent property in the OL Map class? If you just google for max extent or go to the OL examples pages you should find plenty of answers.<div>


<br clear="all">Tim-Hinnerk Heuer<br><br>Twitter: @geekdenz<br><div>Blog: <a href="http://www.thheuer.com/" target="_blank">http://www.thheuer.com</a></div><br>
<br><br><div class="gmail_quote"><div class="im">On Wed, May 9, 2012 at 6:41 PM, ismet bahadir <span dir="ltr">&lt;<a href="mailto:ismetbahadir@gmail.com" target="_blank">ismetbahadir@gmail.com</a>&gt;</span> wrote:<br></div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
hello all,<br><br>i am trying to display only a restricted (defined by me) part of the map i have and i do not want the user to see any other location. i tried to examine maxExtent and bbox but failed to make my code work. <br>




<br>in detail, i want to give my long-lat values (say, 26-45 lon; 36-42 lat), limit the display only to this rectangle and avoid the user to display other places fall apart of this rectangle. <br><br>kind regards,<br><br>




- ismet<br>
<br></div></div><div class="im">_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@lists.osgeo.org" target="_blank">Dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br>