Show Bing logo (#1095)

This commit is contained in:
John Firebaugh
2013-03-20 17:02:24 -07:00
parent 55108a21c8
commit 52e9259108
3 changed files with 9 additions and 6 deletions
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

+9 -6
View File
@@ -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 = '<img src="img/' + d.data.logo + '">'
}
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);
}