I agree, it would be a very nice feature !<br>Cédric<br><br><div class="gmail_quote">On Thu, Dec 10, 2009 at 6:17 PM, Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 2009-12-10 17:57, Luca Casagrande wrote:<br>
> Hi and thanks for your answer, Andreas.<br>
> after your post I am planning to remove/add layers from the tree<br>
> according to the resolution ( the Layer Tree example is a nice<br>
> starting point).<br>
> What do you think about?<br>
><br>
<br>
</div>Not a good idea. IMO the right place to show what is visible is the<br>
legend. The tree is for the user to control what should be visible. When<br>
you remove invisible layers from the tree, you take the control over<br>
that layer from the user. A meaningful UI would gray out layers that are<br>
invisible due to min/maxResolution constraints, but would still allow to<br>
check/uncheck them.<br>
<br>
And the effort to implement grayed-out layers should not be bigger than<br>
adding/removing them based on min/maxResolution.<br>
<br>
Having said that, contribution for grayed out layer nodes based on<br>
min/maxResolution are welcome :-).<br>
<br>
Regards,<br>
<font color="#888888">Andreas.<br>
</font><div><div></div><div class="h5"><br>
> Thanks<br>
> Ciao<br>
><br>
> Luca<br>
><br>
> On Thu, Dec 10, 2009 at 5:30 PM, Andreas Hocevar <<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>> wrote:<br>
><br>
>> Hi,<br>
>><br>
>> when a layer changes from in range to out of range and vice verse,<br>
>> GeoExt does not know about it. The OpenLayers layerswitcher listens to<br>
>> the zoomend event of the map and walks through all layers, graying the<br>
>> ones out of range out. We don't have this "grayed out" state for GeoExt<br>
>> layer nodes.<br>
>><br>
>> Have you tried the LegendPanel? I think the LegendPanel only shows<br>
>> layers that are in range.<br>
>><br>
>> Regards,<br>
>> Andreas.<br>
>><br>
>> On 2009-12-10 15:31, Luca Casagrande wrote:<br>
>><br>
>>> Hello folks,<br>
>>> moving my application from OpenLayers to GeoExt I had a problem with<br>
>>> the maxResolution/minResolution attribute for a WMS layer:<br>
>>> also if the mapPanel show the layer according to the resolution, in<br>
>>> the layerTree it's always checked.<br>
>>> Is there a way to "disable" an overlay layer using resolution values?<br>
>>><br>
>>> Thanks<br>
>>> Ciao<br>
>>><br>
>>> Luca<br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
>>> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>>><br>
>><br>
>> --<br>
>> Andreas Hocevar<br>
>> OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
>> Expert service straight from the developers.<br>
>><br>
>><br>
>><br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>CTO Geospatial Camptocamp SA<br>Cédric Moullet<br>PSE A<br>CH-1015 Lausanne<br><a href="http://www.camptocamp.com">www.camptocamp.com</a> / <a href="http://www.mapfish.org">www.mapfish.org</a> / <a href="http://twitter.com/cedricmoullet">twitter.com/cedricmoullet</a> / <a href="http://mapfishblog.blogspot.com/">mapfishblog.blogspot.com/</a><br>
<br>+41 79 759 69 83 (mobile)<br>+41 21 619 10 21 (direct)<br>+41 21 619 10 10 (centrale)<br>+41 21 619 10 00 (fax)<br>