diff --git a/CHANGELOG.md b/CHANGELOG.md index c13024921..8676cd318 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ _Breaking developer changes, which may affect downstream projects or sites that * Handle indoor features like buildings when checking for crossing ways ([#8944]) #### :rocket: Presets * Optimize order of values in dropdowns of `access` fields ([#8945]) +* Use value of `vehicle` tag as placeholder value of `access` fields for `motor_vehicle` and `bicycle` #### :hammer: Development * Switch build system to [esbuild](https://esbuild.github.io/) for much faster builds ([#8774], thanks [@ mbrzakovic] and [@bhousel]) diff --git a/modules/ui/fields/access.js b/modules/ui/fields/access.js index 6cb7c0006..f8d8b4f96 100644 --- a/modules/ui/fields/access.js +++ b/modules/ui/fields/access.js @@ -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; }