yanivarazi

************* getLayersVisibleAtScale does not work *************

Discussion created by yanivarazi on Aug 20, 2013
Latest reply on Aug 20, 2013 by yanivarazi
hi,
I am using javascript api ver 3.6.
I have 2 layers, one base and one dynamic.
The getLayersVisibleAtScale does not work at all.
I manually hide my dynamic layer and see it gone on the screen, but i still get 2 layers objects and .

var layers = map.getLayersVisibleAtScale(  map.getScale() );

can you please help me  ? 

thanks
yaniv

Outcomes