When there is no legend to display (e.g. layers are turned off or otherwise not visible) the legend div defaults to some text "No legend". I would like to change the text used. How do I do this?
Mark,
You will need to replace the default sting in the esriNLS strings:
sample snippet:
var map;
require(["esri/map", "dojo/i18n!esri/nls/jsapi", "dojo/domReady!"],
function(Map, bundle) {
bundle.widgets.legend.NLS_noLegend = "My No Legend";
}
);