Add icon and tooltip for mapillary detected billboards

This commit is contained in:
Quincy Morgan
2019-12-11 15:58:09 -05:00
parent 70e96fa58b
commit 0b7d5b29c7
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -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
+1
View File
@@ -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",
+7 -1
View File
@@ -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')