[Geoprisma-dev] min/max scale issue

Stephen Woodbridge woodbri at swoodbridge.com
Wed Mar 24 16:58:53 EDT 2010


Yves Moisan wrote:
> Hi All,
> 
> I just noticed if one sets a minScale on a layertree node that the layer 
> cannot be unticked passed the zoom level that meets the condition.  The 
> result is that the user can tick the layer on when zoomed out, but when 
> the layer is grayed out in the tree as the user zooms in it remains 
> ticked and untickable, which defeats the purpose of the scale options.  
> Looking at the code in LayerTreeExtra.js (MF code), I can see how the 
> node is disabled but there is no code there to force a layer to be 
> ticked off.  Or is it somewhere else ?
> 
> If the mapfish layer tree does not provide this, should we do it in our 
> mapfishlayertree widget extension?  Or eventually use another layer 
> tree.  Does the GeoExt tree allow that ?
> 

I think it is more complex an issue because you need to "virtually off" 
but you need to remember state so when you zoom back out you can turn it 
  on again. IE: zooming should not permanently tick/untick selections.

If a control is ticked on and then disabled from zooming then it should 
also be disabled for viewing, but I'm not sure you would want it ticked off.

-Steve W



More information about the Geoprisma-dev mailing list