[OpenLayers-Users] minResolution

Christopher Schmidt crschmidt at metacarta.com
Sun Nov 2 00:17:02 EDT 2008


On Sat, Nov 01, 2008 at 08:35:01PM -0500, Greg Donald wrote:
> How do I calculate a minResolution value?
> 
> I have this:
> 
> var options = {
>   maxExtent: new OpenLayers.Bounds( 0, 0, 4246784, 4246784 ),
>   restrictedExtent: new OpenLayers.Bounds( 0, 0, 4246784, 4246784 ),
>   maxResolution: 4246784 / 256,
> //  minResolution: 331798 / 256,
>   numZoomLevels: 5,
> };
> 
> var map = new OpenLayers.Map( 'map', options );
> 
> I need to make my highest zoom to be quite a bit more than a 1x1 grid.
> 
> Is minResolution what I should even use?

Probably would work, but why not just bump numZoomLevels up another
couple levels?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list