mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Adjust midpoint opacity for more visibility (#1448)
(esp. on sidewalks, footpaths, bridlepaths, etc)
This commit is contained in:
@@ -90,10 +90,10 @@ g.vertex.shared .stroke {
|
|||||||
}
|
}
|
||||||
|
|
||||||
g.midpoint .fill {
|
g.midpoint .fill {
|
||||||
fill: #ddd;
|
fill: #fff;
|
||||||
stroke: black;
|
stroke: #333;
|
||||||
stroke-opacity: .5;
|
stroke-opacity: .8;
|
||||||
opacity: .5;
|
opacity: .8;
|
||||||
}
|
}
|
||||||
|
|
||||||
g.vertex .shadow,
|
g.vertex .shadow,
|
||||||
|
|||||||
@@ -76,18 +76,18 @@ iD.svg.Midpoints = function(projection, context) {
|
|||||||
.attr('class', 'midpoint');
|
.attr('class', 'midpoint');
|
||||||
|
|
||||||
group.append('polygon')
|
group.append('polygon')
|
||||||
.attr('points', '-6,8 8,0 -6,-8')
|
.attr('points', '-6,8 10,0 -6,-8')
|
||||||
.attr('class', 'shadow');
|
.attr('class', 'shadow');
|
||||||
|
|
||||||
group.append('polygon')
|
group.append('polygon')
|
||||||
.attr('points', '-3,4 4,0 -3,-4')
|
.attr('points', '-3,4 5,0 -3,-4')
|
||||||
.attr('class', 'fill');
|
.attr('class', 'fill');
|
||||||
|
|
||||||
groups.attr('transform', function(d) {
|
groups.attr('transform', function(d) {
|
||||||
var translate = iD.svg.PointTransform(projection),
|
var translate = iD.svg.PointTransform(projection),
|
||||||
a = context.entity(d.edge[0]),
|
a = context.entity(d.edge[0]),
|
||||||
b = context.entity(d.edge[1]),
|
b = context.entity(d.edge[1]),
|
||||||
angle = iD.geo.angle(a, b, projection) * (180 / Math.PI);
|
angle = Math.round(iD.geo.angle(a, b, projection) * (180 / Math.PI));
|
||||||
return translate(d) + ' rotate(' + angle + ')';
|
return translate(d) + ' rotate(' + angle + ')';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user