- var layer = map.getMapBaseLayerId();
- button.toggleClass('disabled', layer !== 'mapnik');
+ var disabled = ["mapnik", "cyclemap"].indexOf(map.getMapBaseLayerId()) === -1;
+ button
+ .toggleClass("disabled", disabled)
+ .attr("data-original-title",
+ I18n.t(disabled ?
+ "javascripts.key.tooltip_disabled" :
+ "javascripts.key.tooltip"));