Use value of vehicle tag as placeholder in derived access fields

see https://github.com/openstreetmap/id-tagging-schema/issues/378
This commit is contained in:
Martin Raifer
2022-02-03 19:27:17 +01:00
parent 6a9e0997c7
commit f7d1459c97
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -230,6 +230,11 @@ export function uiFieldAccess(field, context) {
if (d === 'access') {
return 'yes';
}
if (d === 'bicycle' || d === 'motor_vehicle') {
if (tags.vehicle && typeof tags.vehicle === 'string') {
return tags.vehicle;
}
}
if (tags.access && typeof tags.access === 'string') {
return tags.access;
}