mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user