[OpenLayers-Users] Map Extent/Div Size

Gérald Quintana gerald.quintana at gmail.com
Wed Mar 26 11:38:21 EDT 2008


2008/3/26, Christopher Schmidt <crschmidt at metacarta.com>:
> It sounds to me like you want to:
>
>   1. Make your map div have the same width/height ratio as your bounding
>     box.
>   2. set maxResolution: 'auto'.
>
Thanks, the "maxResolution:'auto'" did the trick!

But it reduced the number of zoom levels, and the numZoomLevels
doesn't work anymore.

Extra question: how can I compute the div size for given bounding box
and zoom scale?

Cheers,
Gérald



More information about the Users mailing list