Chris, I tried looking at the layerswitcher mouse handling code but that was even more confusing to me :(
I have built a little tester app: http://demo.cubewerx.com.au/NuMaps/baseLayerTest.html Can you just have a quick look at this for me its probably going to something very simple. I'd appreciate it. Cheers, Brad -----Original Message----- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 October 2007 1:25 PM To: bradleyspencer Cc: openlayers users Subject: Re: [OpenLayers-Users] changing Base layers On Tue, Oct 30, 2007 at 12:42:06PM +1100, bradleyspencer wrote: > Chris, > > I guess I am really dumb but its never clear to me how these different > methods are supposed to be used. I am not a trained OO programmer and find > the documentation a little confusing (my problem :)) > > So, I tried this: map.setBaseLayer(newBaseLayer) > > Where newBaseLayer is the name of the base layer set up at Load time. So, if you add two base layers to the map, then doing that should work. I assume by 'name' you mean 'variable name', rather than anything else. If all else fails, looking at the code to the layerswitcher mouse handling methods might help you. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
