[OpenLayers-Dev] resolutions/scales question

Christopher Schmidt crschmidt at metacarta.com
Tue Oct 28 11:51:28 EDT 2008


On Tue, Oct 28, 2008 at 07:26:19AM +0100, Eric Lemoine wrote:
> Hi devs
> 
> I have a question related to resolutions and overlays. initResolutions
> calculates the resolutions array. Is this at actually needed for
> overlays? Don't overlays always use the resolutions defined in the
> base layer?

Less so with 2.7. Before that, we always used the resolutions list to
check in calculateInRange, so the resolutions were always required.

Now, we probably don't need to calculate resolutions in initResolutions
for layers which are alwaysInRange.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list