only apply layer=1 on newly creted roofs; improve fields for roof preset

* closes #1432 by changing the `layer=1` tag from an `addTags` tag to the default value of the `layer` field
* some of the fields for "regular" buildings don't make sense for "roof-only" features
This commit is contained in:
Martin Raifer 2025-02-04 11:40:22 +01:00
parent da79c5501f
commit 26c1ff1944
No known key found for this signature in database
GPG key ID: 3CD561F7B1C461BD
3 changed files with 27 additions and 9 deletions

View file

@ -1,8 +1,23 @@
{
"icon": "maki-shelter",
"fields": [
"{building}",
"layer"
"building",
"height",
"layer_1"
],
"moreFields": [
"address",
"architect",
"building/colour",
"building/levels",
"building/levels/underground",
"building/material",
"building/prefabricated",
"ele",
"gnis/feature_id-US",
"not/name",
"operator",
"roof/colour"
],
"geometry": [
"area"
@ -10,10 +25,6 @@
"tags": {
"building": "roof"
},
"addTags": {
"building": "roof",
"layer": "1"
},
"matchScore": 0.5,
"name": "Roof"
}