[OpenLayers-Dev] resolutions/scales question

Christopher Schmidt crschmidt at metacarta.com
Tue Oct 28 12:37:17 EDT 2008


On Tue, Oct 28, 2008 at 10:00:34AM -0600, Tim Schaub wrote:
> Hey-
> 
> 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?
> 
> Yep, they do.  So, layer.resolutions is ignored for all but the base layer.

The first and last entry in layer.resolutions are used in any case where
the layer believes that it has a 'valid' range to be on/off. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list