From 6eb73e7de6765fe434a6553b22273463ffabc38c Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 20 May 2019 10:55:23 -0400 Subject: [PATCH] Don't adjust map labels for wikidata tagged items --- modules/svg/labels.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/svg/labels.js b/modules/svg/labels.js index e1a400783..d363396a0 100644 --- a/modules/svg/labels.js +++ b/modules/svg/labels.js @@ -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)