On Tuesday, August 4, 2009, Ivan Grcic <ivan.gr...@geofoto.hr> wrote: > On Tue, Aug 4, 2009 at 6:04 AM, Eric Lemoine<eric.lemo...@camptocamp.com> > wrote: >> On Monday, August 3, 2009, Ivan Grcic <ivan.gr...@geofoto.hr> wrote: >>> Hi devs, >>> >>> I want to ask if anyone has made something like Vector/RootContainer, >>> a layer that would contain several layers, and every layer would >>> activate/deactivate on different zoomLevels. >>> >>> Simple case: 3 (or more) layers combined in one ContainerLayer >>> small scale: WMS raster layer >>> larger scales: other WMS raster layer >>> large scale: WFS vector layer >>> >>> Usually I always register zoomend event on map, and manually activate >>> or deactivate layers...but it got little bit boring to do that on >>> application level every time. >>> >>> I remember Alexandre did something like that but for Vector layer >>> or http://openlayers.org/pipermail/users/2009-January/009666.html >>> >>> Anyone did something like that? (does mapfish maybe has soemthing like that) >>> If not, can anyone just give few tips, so I could start developing it... >> >> >> Hi Ivan >> >> Can't you just set different resolution ranges in the layers? >> >> Cheers, >> >> > Tnx for replies guys, > > > Yes yes, im setting ranges for my layers, but I want to have only one > layer shown in layerSwitcher for group of layers. > > I guess I just have to create one dummy layer with inLayerSwitcher: > true, and other layers to false. And then just register activate, > deactivate events that will turn off/on all group layers. (as alex > suggested, tnx) > > I was just wondering if it would have sense to have it included in > API, not to do it manually all the time...
Sorry I misunderstood you Ivan. IIRC we have that in the MapFish layer tree, but I guess you don't want to pull the entire Ext lib just for that. > Cheers > > >>> >>> Tnx&Cheers, >>> >>> >>> -- >>> Ivan Grcic >>> _______________________________________________ >>> Dev mailing list >>> Dev@openlayers.org >>> http://openlayers.org/mailman/listinfo/dev >>> >> >> -- >> Eric Lemoine >> >> Camptocamp France SAS >> Savoie Technolac, BP 352 >> 73377 Le Bourget du Lac, Cedex >> >> Tel : 00 33 4 79 44 44 96 >> Mail : eric.lemo...@camptocamp.com >> http://www.camptocamp.com >> _______________________________________________ >> Dev mailing list >> Dev@openlayers.org >> http://openlayers.org/mailman/listinfo/dev >> > > > > -- > Ivan Grcic > -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev