[OpenLayers-Users] Check for disabled layer

Christopher Schmidt crschmidt at metacarta.com
Thu Feb 19 13:37:08 EST 2009


On Thu, Feb 19, 2009 at 10:33:42AM -0800, Luca Casagrande wrote:
> 
> Hello everybody.
> To show a Legend inside my OpenLayers application, I am using
> getVisibility() to create a list of the layers; the problem is with the
> layers disabled by minResolution, maxResolution setting..is there way for
> checking them other then get minResolution and maxResolution and compare it
> with the current resolution?

layer.calculateInRange();

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list