mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Restore maki icons on vertices and areas
This commit is contained in:
@@ -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';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user