I am trying to add a bootstrap switch inside my leaflet.js map. So far I have a working button (see snippet) but I want to use a switch instead. See attached image: So far it is a complete failure. Among the things I have tried is the code below (which obviously does not work): Does anyone know how this should