mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-30 03:39:36 +02:00
Add icon and tooltip for mapillary detected billboards
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+1
@@ -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",
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user