[OpenLayers-Users] Given Bounds, Calculate Zoom
Eric Lemoine
eric.lemoine at camptocamp.com
Wed Jun 15 10:14:48 EDT 2011
On Wed, Jun 15, 2011 at 4:11 PM, Arnie Shore <ashore3 at verizon.net> wrote:
> Eric, thanks. Certainly on point.
>
> But for those of us not yet comfortable with the syntax, a usage example -
> one line in most cases, I'd think - wd be immensely helpful.
>
> I'm still fighting it and cd use some help.
Hoping the following will help:
map.getZoomForExtent(new OpenLayers.Bounds(-180, -90, 180, 90));
--
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 Users
mailing list