Skip to content

Commit

Permalink
Leave directional indicator only for current image
Browse files Browse the repository at this point in the history
  • Loading branch information
kratico committed Jul 19, 2018
1 parent aac394a commit c000da0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions css/60_photos.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@
.layer-mapillary-images .viewfield-group * {
fill: #55ff22;
}
.layer-mapillary-images .viewfield-group .viewfield {
display: none;
}
.layer-mapillary-images .viewfield-group.selected .viewfield,
.layer-mapillary-images .viewfield-group .viewfield.pano {
display: inline;
}
.layer-mapillary-images .sequence {
stroke: #55ff22;
}
Expand Down
1 change: 1 addition & 0 deletions modules/svg/mapillary_images.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export function svgMapillaryImages(projection, context, dispatch) {
viewfields.enter() // viewfields may or may not be drawn...
.insert('path', 'circle') // but if they are, draw below the circles
.attr('class', 'viewfield')
.classed('pano', function() { return this.parentNode.__data__.pano; })
.attr('transform', 'scale(1.5,1.5),translate(-8, -13)')
.attr('d', viewfieldPath);

Expand Down

0 comments on commit c000da0

Please sign in to comment.