Adjust midpoint opacity for more visibility (#1448)

(esp. on sidewalks, footpaths, bridlepaths, etc)
This commit is contained in:
Bryan Housel
2014-07-16 23:44:41 -04:00
parent 26f8849c3a
commit afa1efd922
2 changed files with 7 additions and 7 deletions

View File

@@ -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,

View File

@@ -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 + ')';
}); });