I tried the code and I am getting layer controls in 2 places. One inside the map in its normal place and one in the div i have defined. Clicking on the normal place has no effect, clicking on my div can change the layers.
How can i remove the layer control from its normal place?
I tried removing the "layerControlSettings.addTo(map);" line, then i get "Uncaught TypeError: Cannot read property 'hasLayer' of undefined"