Restore maki icons on vertices and areas

This commit is contained in:
Bryan Housel
2017-01-14 22:08:47 +05:30
parent 7aecb25dac
commit 9b922899a6
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -193,15 +193,15 @@ export function svgLabels(projection, context) {
icons = icons.enter()
.append('use')
.attr('class', 'icon areaicon')
.attr('width', '18px')
.attr('height', '18px')
.attr('width', '15px')
.attr('height', '15px')
.merge(icons);
icons
.attr('transform', get(labels, 'transform'))
.attr('xlink:href', function(d) {
var icon = context.presets().match(d, context.graph()).icon;
return '#' + icon + (icon === 'hairdresser' ? '-24': '-18'); // workaround: maki hairdresser-18 broken?
return '#' + icon + '-15';
});
}
+3 -3
View File
@@ -121,9 +121,9 @@ export function svgVertices(projection, context) {
enter.filter(function(d) { return icon(d); })
.append('use')
.attr('transform', 'translate(-6, -6)')
.attr('xlink:href', function(d) { return '#' + icon(d) + '-12'; })
.attr('width', '12px')
.attr('height', '12px')
.attr('xlink:href', function(d) { return '#' + icon(d) + '-11'; })
.attr('width', '11px')
.attr('height', '11px')
.each(setClass('icon'));
// Vertices with tags get a fill.