[OpenLayers-Users] Calculating zoom level from an area

Lennox Antoine lxnyce at gmail.com
Mon Jul 12 20:06:34 EDT 2010


You might want to look at : getZoomForExtent

http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.getZoomForExtent

and zoomToExtent

http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtent

Lennox

On Mon, Jul 12, 2010 at 8:01 PM, MostlyBaldEagle <MostlyBaldEagle at shaw.ca>wrote:

>
> I need to figure out what zoom level to use to be able to fully see a
> rectangular area bound by max latitude + longitude and min latitude +
> longitude.
>
> Anybody ever done this? Any hints would be appreciated
>
> Thanks
> Olaf
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Calculating-zoom-level-from-an-area-tp5285435p5285435.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100712/e2e711cb/attachment.html


More information about the Users mailing list