forked from MapComplete/MapComplete
Refactoring: move the units into the layers instead of the themes
This commit is contained in:
parent
3492b5d403
commit
206aff2c9a
16 changed files with 259 additions and 300 deletions
|
@ -913,43 +913,6 @@
|
|||
"wayHandling": 0
|
||||
}
|
||||
],
|
||||
"units": [
|
||||
{
|
||||
"appliesToKey": [
|
||||
"climbing:length",
|
||||
"climbing:length:min",
|
||||
"climbing:length:max"
|
||||
],
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "",
|
||||
"alternativeDenomination": [
|
||||
"m",
|
||||
"meter",
|
||||
"meters"
|
||||
],
|
||||
"human": {
|
||||
"en": " meter",
|
||||
"nl": " meter",
|
||||
"fr": " mètres"
|
||||
},
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "ft",
|
||||
"alternativeDenomination": [
|
||||
"feet",
|
||||
"voet"
|
||||
],
|
||||
"human": {
|
||||
"en": " feet",
|
||||
"nl": " voet",
|
||||
"fr": " pieds"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"roamingRenderings": [
|
||||
{
|
||||
"#": "Website",
|
||||
|
@ -1466,6 +1429,7 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
|
||||
"overrideAll": {
|
||||
"titleIcons": [
|
||||
{
|
||||
|
@ -1497,6 +1461,43 @@
|
|||
"_embedding_feature:access=JSON.parse(feat.properties._embedding_features_with_access ?? '{}').access",
|
||||
"_embedding_feature:access:description=JSON.parse(feat.properties._embedding_features_with_access ?? '{}')['access:description']",
|
||||
"_embedding_feature:id=JSON.parse(feat.properties._embedding_features_with_access ?? '{}').id"
|
||||
],
|
||||
"units+": [
|
||||
{
|
||||
"appliesToKey": [
|
||||
"climbing:length",
|
||||
"climbing:length:min",
|
||||
"climbing:length:max"
|
||||
],
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "",
|
||||
"alternativeDenomination": [
|
||||
"m",
|
||||
"meter",
|
||||
"meters"
|
||||
],
|
||||
"human": {
|
||||
"en": " meter",
|
||||
"nl": " meter",
|
||||
"fr": " mètres"
|
||||
},
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "ft",
|
||||
"alternativeDenomination": [
|
||||
"feet",
|
||||
"voet"
|
||||
],
|
||||
"human": {
|
||||
"en": " feet",
|
||||
"nl": " voet",
|
||||
"fr": " pieds"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -26,26 +26,5 @@
|
|||
"socialImage": "",
|
||||
"layers": [
|
||||
"observation_tower"
|
||||
],
|
||||
"units": [
|
||||
{
|
||||
"appliesToKey": [
|
||||
"height"
|
||||
],
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "m",
|
||||
"alternativeDenomination": [
|
||||
"meter",
|
||||
"mtr"
|
||||
],
|
||||
"human": {
|
||||
"nl": " meter",
|
||||
"en": " meter"
|
||||
}
|
||||
}
|
||||
],
|
||||
"eraseInvalidValues": true
|
||||
}
|
||||
]
|
||||
}
|
|
@ -145,82 +145,82 @@
|
|||
"fr": "Éolienne"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"units": [
|
||||
{
|
||||
"appliesToKey": [
|
||||
"generator:output:electricity"
|
||||
],
|
||||
"applicableUnits": [
|
||||
"units": [
|
||||
{
|
||||
"canonicalDenomination": "MW",
|
||||
"alternativeDenomination": [
|
||||
"megawatts",
|
||||
"megawatt"
|
||||
"appliesToKey": [
|
||||
"generator:output:electricity"
|
||||
],
|
||||
"human": {
|
||||
"en": " megawatts",
|
||||
"nl": " megawatt",
|
||||
"fr": " megawatts"
|
||||
}
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "MW",
|
||||
"alternativeDenomination": [
|
||||
"megawatts",
|
||||
"megawatt"
|
||||
],
|
||||
"human": {
|
||||
"en": " megawatts",
|
||||
"nl": " megawatt",
|
||||
"fr": " megawatts"
|
||||
}
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "kW",
|
||||
"alternativeDenomination": [
|
||||
"kilowatts",
|
||||
"kilowatt"
|
||||
],
|
||||
"human": {
|
||||
"en": " kilowatts",
|
||||
"nl": " kilowatt",
|
||||
"fr": " kilowatts"
|
||||
}
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "W",
|
||||
"alternativeDenomination": [
|
||||
"watts",
|
||||
"watt"
|
||||
],
|
||||
"human": {
|
||||
"en": " watts",
|
||||
"nl": " watt",
|
||||
"fr": " watts"
|
||||
}
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "GW",
|
||||
"alternativeDenomination": [
|
||||
"gigawatts",
|
||||
"gigawatt"
|
||||
],
|
||||
"human": {
|
||||
"en": " gigawatts",
|
||||
"nl": " gigawatt",
|
||||
"fr": " gigawatts"
|
||||
}
|
||||
}
|
||||
],
|
||||
"eraseInvalidValues": true
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "kW",
|
||||
"alternativeDenomination": [
|
||||
"kilowatts",
|
||||
"kilowatt"
|
||||
"appliesToKey": [
|
||||
"height",
|
||||
"rotor:diameter"
|
||||
],
|
||||
"human": {
|
||||
"en": " kilowatts",
|
||||
"nl": " kilowatt",
|
||||
"fr": " kilowatts"
|
||||
}
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "W",
|
||||
"alternativeDenomination": [
|
||||
"watts",
|
||||
"watt"
|
||||
],
|
||||
"human": {
|
||||
"en": " watts",
|
||||
"nl": " watt",
|
||||
"fr": " watts"
|
||||
}
|
||||
},
|
||||
{
|
||||
"canonicalDenomination": "GW",
|
||||
"alternativeDenomination": [
|
||||
"gigawatts",
|
||||
"gigawatt"
|
||||
],
|
||||
"human": {
|
||||
"en": " gigawatts",
|
||||
"nl": " gigawatt",
|
||||
"fr": " gigawatts"
|
||||
}
|
||||
}
|
||||
],
|
||||
"eraseInvalidValues": true
|
||||
},
|
||||
{
|
||||
"appliesToKey": [
|
||||
"height",
|
||||
"rotor:diameter"
|
||||
],
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "m",
|
||||
"alternativeDenomination": [
|
||||
"meter"
|
||||
],
|
||||
"human": {
|
||||
"en": " meter",
|
||||
"nl": " meter",
|
||||
"fr": " mètres"
|
||||
}
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "m",
|
||||
"alternativeDenomination": [
|
||||
"meter"
|
||||
],
|
||||
"human": {
|
||||
"en": " meter",
|
||||
"nl": " meter",
|
||||
"fr": " mètres"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -39,26 +39,5 @@
|
|||
"binocular",
|
||||
"observation_tower"
|
||||
],
|
||||
"hideFromOverview": true,
|
||||
"units": [
|
||||
{
|
||||
"appliesToKey": [
|
||||
"height"
|
||||
],
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "m",
|
||||
"alternativeDenomination": [
|
||||
"meter",
|
||||
"mtr"
|
||||
],
|
||||
"human": {
|
||||
"nl": " meter",
|
||||
"en": " meter"
|
||||
}
|
||||
}
|
||||
],
|
||||
"eraseInvalidValues": true
|
||||
}
|
||||
]
|
||||
"hideFromOverview": true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue