Better look for mapillary markers

This commit is contained in:
Pierre GIRAUD
2015-06-12 16:52:20 +02:00
parent 7b4c6d2a16
commit 71061a4f5e
2 changed files with 18 additions and 9 deletions
+14 -7
View File
@@ -1182,23 +1182,30 @@ text.gpx {
}
.layer-mapillary g * {
stroke-width: 2;
stroke: #ffc600;
stroke-width: 1;
stroke: #444;
fill: #ffc600;
}
.layer-mapillary g:hover * {
stroke-width: 2;
stroke: #ff9900;
stroke-width: 1;
stroke: #333;
fill: #ff9900;
}
.layer-mapillary g.selected * {
stroke-width: 4;
stroke: #ff5800;
.layer-mapillary g.selected * {
stroke-width: 2;
stroke: #222;
fill: #ff5800;
}
.layer-mapillary g:hover path.viewfield,
.layer-mapillary g.selected path.viewfield,
.layer-mapillary g path.viewfield {
stroke-width: 0;
fill-opacity: 0.6;
}
/* Modes */
.mode-draw-line .vertex.active,
+4 -2
View File
@@ -129,12 +129,14 @@ iD.MapillaryLayer = function (context) {
.attr('class', 'image');
enter.append('path')
.attr('d', 'M 0,-5 l 0,-20 l -5,30 l 10,0 l -5,-30');
.attr('class', 'viewfield')
.attr('transform', 'scale(1.5,1.5),translate(-8, -13)')
.attr('d', 'M 6,9 C 8,8.4 8,8.4 10,9 L 16,-2 C 12,-5 4,-5 0,-2 z');
enter.append('circle')
.attr('dx', '0')
.attr('dy', '0')
.attr('r', '8');
.attr('r', '6');
g.attr('transform', transform);