[OpenLayers-Dev] displaying limited map

Zac Spitzer zac.spitzer at gmail.com
Wed May 9 02:57:26 EDT 2012


try restrictedExtent

On Wed, May 9, 2012 at 4:41 PM, ismet bahadir <ismetbahadir at gmail.com> wrote:
> hello all,
>
> 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.
>
> 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.
>
> kind regards,
>
> - ismet
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168


More information about the Dev mailing list