If anyone cares, I have opened a ticket for this:
http://trac.openlayers.org/ticket/1684
I probably won't look at it for a long while, but at least it is
recorded somewhere.
Erik
On Thu, Jan 3, 2008 at 3:18 PM, Erik Uzureau <[EMAIL PROTECTED]> wrote:
> seems like maybe it would be nice to have l
seems like maybe it would be nice to have layer switcher's redraw()
re-init the layerStates array automatically? or if not automatically,
at least via a parameter to the function or something the
layerStates property to me should be a private of the layerswitcher,
that no user should need to kn
> You can force
> this by doing layerswitcher_control.layerStates = []; to clear out the
> layerStates, which will cause it to redraw.
Thanks Christopher, that worked a treat. To summarize, the code
sequence that works is:
myLayer.displayInLayerSwitcher = false;
layerSwitcher.layerStates
On Tue, Dec 04, 2007 at 09:33:41PM +, Jon Blower wrote:
> OK, attached is an HTML file that shows the problem. As you can see
> from the code I'm doing the following:
>
> 1) Creating two overlay layers, only one of which is to be displayed
> in the layer switcher
> 2) Adding both overlays to
OK, attached is an HTML file that shows the problem. As you can see
from the code I'm doing the following:
1) Creating two overlay layers, only one of which is to be displayed
in the layer switcher
2) Adding both overlays to the map
3) Toggling the displayInLayerSwitcher property of each overlay
On Tue, Dec 04, 2007 at 06:17:08PM +, Jon Blower wrote:
> Hi Christopher,
>
> > Have two layers, and switch between them? You don't have to display them
> > both: when you switch, set the one you'r turning 'off' to
> > displayInLayerSwitcher false, then call cahngebaseLayer (or
> > setVisibili
Hi Christopher,
> Have two layers, and switch between them? You don't have to display them
> both: when you switch, set the one you'r turning 'off' to
> displayInLayerSwitcher false, then call cahngebaseLayer (or
> setVisibility, if they are overlays) and change the layer.
I've just tried this an
On Thu, Nov 29, 2007 at 01:05:42PM +, Jon Blower wrote:
> Thanks Christopher - that was going to be my backup plan but I just
> wanted to see if there was another way to do it.
I have no idea if anything else works, for the record: I never use
untiled layers.
Regards,
--
Christopher Schmidt
Thanks Christopher - that was going to be my backup plan but I just
wanted to see if there was another way to do it.
Cheers, Jon
On Nov 29, 2007 12:47 PM, Christopher Schmidt <[EMAIL PROTECTED]> wrote:
> On Thu, Nov 29, 2007 at 12:20:43PM +, Jon Blower wrote:
> > Hi all,
> >
> > Is there a wa
On Thu, Nov 29, 2007 at 12:20:43PM +, Jon Blower wrote:
> Hi all,
>
> Is there a way to switch a WMS layer from gridded to singleTile mode
> after it has been created? I have a WMS that serves several different
> types of layers - some work best displayed in gridded mode and some
> work bette
Hi all,
Is there a way to switch a WMS layer from gridded to singleTile mode
after it has been created? I have a WMS that serves several different
types of layers - some work best displayed in gridded mode and some
work better in singleTile mode. Therefore I'd like to be able to
switch between m
11 matches
Mail list logo