Don't adjust map labels for wikidata tagged items

This commit is contained in:
Bryan Housel
2019-05-20 10:55:23 -04:00
parent e7b3354db7
commit 6eb73e7de6

View File

@@ -156,8 +156,7 @@ export function svgLabels(projection, context) {
texts.enter()
.append('text')
.attr('class', function(d, i) {
var hasWd = d.hasWikidata() ? ' tag-wikidata' : '';
return classes + ' ' + labels[i].classes + hasWd + ' ' + d.id;
return classes + ' ' + labels[i].classes + ' ' + d.id;
})
.merge(texts)
.attr('x', get(labels, 'x'))
@@ -193,10 +192,7 @@ export function svgLabels(projection, context) {
// enter/update
icons.enter()
.append('use')
.attr('class', function(d) {
var hasWd = d.hasWikidata() ? ' tag-wikidata' : '';
return 'icon ' + classes + hasWd;
})
.attr('class', 'icon ' + classes)
.attr('width', '17px')
.attr('height', '17px')
.merge(icons)