[OpenLayers-Dev] Limit the navigation to BBOX

Eric Lemoine eric.lemoine at camptocamp.com
Sat Jan 15 15:30:20 EST 2011


On Sat, Jan 15, 2011 at 7:59 PM, Francisco M. Santana Verona
<franverona at gmail.com> wrote:
> Greetings!
>
> I need to restrict the navigation on my maps (move map and GetFeatureInfo)
> to the BBOX of each one. That is, the user can't move the map beyond the
> BBOX coordinates and is unable to GetFeatureInfo too.
>
> Is it possible? How can I do it?

With the restrictedExtent option on the Map.
<http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.restrictedExtent>.

PS: please use the "users" mailing list for questions unrelated to the
internals of the lib. Thanks.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Dev mailing list