Skip to content

Commit

Permalink
Add icon and tooltip for mapillary detected billboards
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Dec 11, 2019
1 parent 70e96fa commit 0b7d5b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ en:
banner: banner
bench: bench
bike_rack: bike rack
billboard: billboard
catch_basin: catch basin
cctv_camera: CCTV camera
fire_hydrant: fire hydrant
Expand Down
1 change: 1 addition & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,7 @@
"banner": "banner",
"bench": "bench",
"bike_rack": "bike rack",
"billboard": "billboard",
"catch_basin": "catch basin",
"cctv_camera": "CCTV camera",
"fire_hydrant": "fire hydrant",
Expand Down
8 changes: 7 additions & 1 deletion modules/svg/mapillary_map_features.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ export function svgMapillaryMapFeatures(projection, context, dispatch) {
.attr('height', '24px')
.attr('x', '-12px')
.attr('y', '-12px')
.attr('xlink:href', function(d) { return '#' + d.value; });
.attr('xlink:href', function(d) {
if (d.value === 'object--billboard') {
// no billboard icon right now, so use the advertisement icon
return '#object--sign--advertisement';
}
return '#' + d.value;
});

enter
.append('rect')
Expand Down

0 comments on commit 0b7d5b2

Please sign in to comment.