")
+ .appendTo(buttonContainer);
- if (OSM.STATUS != 'api_offline' && OSM.STATUS != 'database_offline') {
- var overlaySection = $('
')
- .addClass('overlay-layers')
- .appendTo($ui);
+ var input = $("")
+ .prop("id", id)
+ .prop("checked", map.hasLayer(layer))
+ .appendTo(buttonContainer);
- $('')
- .text(I18n.t('javascripts.map.layers.overlays'))
- .appendTo(overlaySection);
+ var item = $("