<div dir="ltr">It's a solution but not perfect, user still able to draw outside of the range.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 12, 2013 at 8:14 AM, Sergeant_york <span dir="ltr"><<a href="mailto:electronicpanda@gmail.com" target="_blank">electronicpanda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If your problem is not being able to restrict people to draw outside of<br>
defined borders, there is a much more easier solution by the way (inside of<br>
drawing borders =) )<br>
<br>
You can restrict OpenLayers.Map object's extent:<br>
<br>
<a href="http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html" target="_blank">http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html</a><br>
restrictedExtent        {<OpenLayers.Bounds>|Array} If provided as an array, the<br>
array should consist of four values (left, bottom, right, top).<br>
<br>
<br>
Code can be like that:<br>
<br>
map.setOptions({restrictedExtent: map.getMaxExtent()});<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/display-a-border-at-the-end-of-the-world-tp5039296p5039794.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/display-a-border-at-the-end-of-the-world-tp5039296p5039794.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br></div>