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. This does not work. Am I on the right track here? Cheers, Brad Spencer -----Original Message----- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 October 2007 11:55 AM To: bradleyspencer Cc: openlayers users Subject: Re: [OpenLayers-Users] changing Base layers On Tue, Oct 30, 2007 at 10:05:40AM +1100, bradleyspencer wrote: > List, > > Has anybody needed to do this? > > I want to remove the Layerswitcher all together from my map and place > controls on outside of the map. > > If I had my own radio buttons outside of map for the available base map > options, is there a standard method to activate the change in base map? Hm, let's see, a function to change the base layer of the map object... http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Ma p.setBaseLayer Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
