diff --git a/img/bing.png b/img/bing.png deleted file mode 100644 index a5a5c38dd..000000000 Binary files a/img/bing.png and /dev/null differ diff --git a/img/bing_maps.png b/img/bing_maps.png new file mode 100644 index 000000000..bbc4b1dfa Binary files /dev/null and b/img/bing_maps.png differ diff --git a/js/id/ui/attribution.js b/js/id/ui/attribution.js index ec98a84b8..c986206c6 100644 --- a/js/id/ui/attribution.js +++ b/js/id/ui/attribution.js @@ -9,16 +9,19 @@ iD.ui.Attribution = function(context) { if (!d) return; - var desc = t('imagery.provided_by', { - source: (d.data.sourcetag || d.data.name) - }); + var source = d.data.sourcetag || d.data.name; + + if (d.data.logo) { + source = '' + } + + var desc = t('imagery.provided_by', {source: source}); if (d.data.terms_url) { provided_by.append('a') - .attr('href', (d.data.terms_url || '')) + .attr('href', d.data.terms_url) .attr('target', '_blank') - .classed('disabled', !d.data.terms_url) - .text(desc); + .html(desc); } else { provided_by.text(desc); }