mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Don't adjust map labels for wikidata tagged items
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user