mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 19:26:41 +02:00
Support more subtypes of osmose error type 8300
This commit is contained in:
@@ -888,10 +888,12 @@ en:
|
||||
title: 'Traffic Sign Suggestion'
|
||||
description: 'Traffic signs detected by Mapillary suggest there may be an unmapped {0} nearby.'
|
||||
parts:
|
||||
1: 'speed limit'
|
||||
20: 'max height limit'
|
||||
21: 'max weight limit'
|
||||
32: 'roundabout'
|
||||
34: 'set of speed bumps'
|
||||
39: 'living street'
|
||||
8360:
|
||||
title: 'Missing Street Object'
|
||||
description: 'Object detection by Mapillary suggests there may be an unmapped {0} nearby.'
|
||||
|
||||
@@ -111,6 +111,57 @@
|
||||
"7040-6": {
|
||||
"icon": "temaki-power"
|
||||
},
|
||||
"8300-1": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-2": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-3": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-4": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-5": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-6": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-7": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-8": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-9": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-10": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-11": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-12": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-13": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-14": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-15": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-16": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-17": {
|
||||
"icon": "fas-tachometer-alt"
|
||||
},
|
||||
"8300-20": {
|
||||
"icon": "temaki-height_restrictor"
|
||||
},
|
||||
@@ -123,6 +174,9 @@
|
||||
"8300-34": {
|
||||
"icon": "temaki-diamond"
|
||||
},
|
||||
"8300-39": {
|
||||
"icon": "temaki-pedestrian"
|
||||
},
|
||||
"8360-1": {
|
||||
"icon": "temaki-bench"
|
||||
},
|
||||
|
||||
Vendored
+3
-1
@@ -1062,10 +1062,12 @@
|
||||
"title": "Traffic Sign Suggestion",
|
||||
"description": "Traffic signs detected by Mapillary suggest there may be an unmapped {0} nearby.",
|
||||
"parts": {
|
||||
"1": "speed limit",
|
||||
"20": "max height limit",
|
||||
"21": "max weight limit",
|
||||
"32": "roundabout",
|
||||
"34": "set of speed bumps"
|
||||
"34": "set of speed bumps",
|
||||
"39": "living street"
|
||||
}
|
||||
},
|
||||
"8360": {
|
||||
|
||||
@@ -140,13 +140,20 @@ export default {
|
||||
});
|
||||
|
||||
// Special handling for some error types
|
||||
// Setting elems here prevents UI error detail requests
|
||||
switch (d.item) {
|
||||
case 8300:
|
||||
case 8360: {
|
||||
// Parts only exists for these error types
|
||||
let { parts } = dataEn.QA.osmose.error_types[d.item];
|
||||
d.replacements = [parts[error_class]];
|
||||
let k = error_class;
|
||||
|
||||
// First 17 classes are all speed limits
|
||||
if (item === 8300 && error_class <= 17) {
|
||||
k = 1;
|
||||
}
|
||||
|
||||
// Setting elems here prevents UI error detail requests
|
||||
d.replacements = [parts[k]];
|
||||
d.elems = [];
|
||||
break;
|
||||
}
|
||||
@@ -272,4 +279,4 @@ export default {
|
||||
getClosedCounts() {
|
||||
return _erCache.closed;
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user