Re: [OpenMap Users] Hiding Layers when starting ?

From: Stéphane Wasserhardt <swasserhardt_at_cls.fr>
Date: Tue, 26 Dec 2006 17:46:52 +0100

Camille,
I don't know "the good way" to do what you want, but you could try making
your own PlugInLayer subclass, then try overriding the prepare method in
order to call the getRectangle of the WMSPlugIn *only* if the layer is visible.
Then the solution 1° should do the trick !
Hope this helps !

Stephane


Le 17:09 26/12/2006,Camille Blondiaux écrit:
>Ok, I already tried the two solutions. And each has some good
>points for me I'd like a mix ;)
>
>if I use
>
>1°) layer.setVisible(false);
>the behavior is : No visible but LoadingWork (so Time
>consuming), then displays if I turn the lightOn on the
>layersPanel !
>If I then turn it off, it isn't visible and doesn't do the
>LoadingWork ! From here, the behavior is the one I want !!
>
>2°) layerHandler.turnLayerOn(false, layer);
>the behavior is : no visible no loadingWork (Which I want),
>but doesn't appears if I switch it On on the layer panel (but
>does the loading work !!!!).
>
>I hope you understand me...
>
>Kmouille
>
> > Le 16:03 26/12/2006,Camille Blondiaux écrit:
> > >At startup, my two first layers are'nt visible, it's OK, but
> > >when I turn them on, although the loading work's well done,
> > >the layers don't appear.
> >
> > "when I turn them on" : which method do you use :
> > 1°) layer.setVisible(true);
> > or
> > 2°) layerHandler.turnLayerOn(layer);
> > ??
> >
> > The second one should do what you want.
> > Let me know if it works ;)
> >
> > Stephane
> >
> > --
> > [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> > with the following text in the BODY of the message
>"unsubscribe openmap-users"]
> >
>
>Envoyez vos cartes de voeux depuis www.laposte.net
>Elles seront ensuite distribuées par le facteur : pratique et malin !
>
>--
>[To unsubscribe to this list send an email to "majdart_at_bbn.com"
>with the following text in the BODY of the message "unsubscribe
>openmap-users"]
>
>
> Cliquez sur l'url suivante
>https://www.mailcontrol.com/sr/z8r+CLjq37K5w1xqzWCS6zE!i1cZyHZovEJz2fJ1S5B2+lxGjofcFRhJGt6Yvr3YFJYHvjJgiZ9C78SAc20Dzu0CvbNl3BtJSZmcTPXBqtvoadkZLQmsBr40EPdn7Kl5+TiJnfOoLSsnwe27OCwXV05fI2fAN8LiVg+Z43dzgaNCU2XDUGTy+BPNUZtRmazGbhSIkSq2WP9R77JPBvofWqC8nK3p6uY3
>
> si ce message est indésirable (pourriel).

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Dec 26 2006 - 11:47:46 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT