diff --git a/loleaflet/src/control/toolbar.js b/loleaflet/src/control/toolbar.js index 25cc0fe98..dc2a54651 100644 --- a/loleaflet/src/control/toolbar.js +++ b/loleaflet/src/control/toolbar.js @@ -2274,7 +2274,9 @@ $(window).resize(function() { }); $(document).ready(function() { - if (closebutton && !L.Browser.mobile) { + if (!closebutton) { + $('#closebuttonwrapper').hide(); + } else if (closebutton && !L.Browser.mobile) { $('#closebuttonwrapper').show(); }