+
+ map.on('zoomend', function() {
+ var disabled = map.getZoom() < minZoom + 1;
+ $(input).prop('disabled', disabled);
+ disabled ? $(item).attr('class', 'disabled') : $(item).attr('class', '');
+ item.attr('data-original-title', disabled ?
+ 'Zoom in to see ' + name.toLowerCase() : '');
+ });