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