I have trouble with changing the image in layer control I tried this: https://jsfiddle.net/v95h1kx4/

My browser has no problem with this but some people have top of the control blue and bottom of the control white - without the actual image. The weird thing is that they even use the same browser (Firefox, Chrome). It shows no errors for them too.

1 Answer 1


Simply add background-size: 20px 20px; in .leaflet-control-layers-toggle CSS.

Updated jsfiddle: https://jsfiddle.net/v95h1kx4/5/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.