On Tue, Dec 04, 2007 at 06:17:08PM +0000, 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 > > setVisibility, if they are overlays) and change the layer. > > I've just tried this and don't quite get the result I expect. If I > change the property displayInLayerSwitcher after a layer has been > added to the map, nothing happens, even if I call > layerSwitcher.redraw(). > > Is there a way to add or remove a layer from the layer switcher after > the layer has been added to the map?
I'm surprised this doesn't work. Can you craft a simple HTML example demonstrating it that you can share? Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
