[OpenLayers-Dev] A kind of MultiLayer container
ivan.grcic at geofoto.hr
Tue Aug 4 04:06:31 EDT 2009
On Tue, Aug 4, 2009 at 6:04 AM, Eric Lemoine<eric.lemoine at camptocamp.com> wrote:
> On Monday, August 3, 2009, Ivan Grcic <ivan.grcic at 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?
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
I was just wondering if it would have sense to have it included in
API, not to do it manually all the time...
>> Ivan Grcic
>> Dev mailing list
>> Dev at openlayers.org
> 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.lemoine at camptocamp.com
> Dev mailing list
> Dev at openlayers.org
More information about the Dev