Update presets
This commit is contained in:
parent
834e4b5e02
commit
76874e6de8
7 changed files with 43 additions and 40 deletions
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -18,5 +18,8 @@
|
|||
"[svelte]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"editor.formatOnSave": true
|
||||
"editor.formatOnSave": true,
|
||||
"files.associations": {
|
||||
"*.protojson": "json"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -329,7 +329,7 @@
|
|||
"class": "medium"
|
||||
},
|
||||
"hideInAnswer": {
|
||||
"or": [
|
||||
"and": [
|
||||
"_country!=af",
|
||||
"_country!=al",
|
||||
"_country!=dz",
|
||||
|
@ -445,7 +445,7 @@
|
|||
"class": "medium"
|
||||
},
|
||||
"hideInAnswer": {
|
||||
"or": [
|
||||
"and": [
|
||||
"_country!=be",
|
||||
"_country!=bj",
|
||||
"_country!=bf",
|
||||
|
@ -1142,7 +1142,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"or": [
|
||||
"and": [
|
||||
"_country!=us"
|
||||
]
|
||||
}
|
||||
|
@ -5213,16 +5213,15 @@
|
|||
"tags": [
|
||||
"amenity=charging_station",
|
||||
"motorcar=no",
|
||||
"bicycle=yes",
|
||||
"socket:typee=1"
|
||||
"bicycle=yes"
|
||||
],
|
||||
"title": {
|
||||
"en": "a charging station for electrical bikes with a normal european wall plug <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (meant to charge electrical bikes)",
|
||||
"nl": "een oplaadpunt voor elektrische fietsen met een gewoon Europees stopcontact <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (speciaal bedoeld voor fietsen)",
|
||||
"en": "a charging station for electrical bikes",
|
||||
"nl": "een oplaadpunt voor elektrische fietsen",
|
||||
"ca": "una estació de càrrega per a bicicletes elèctriques amb un endoll de paret europeu normal<img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (destinat a carregar bicicletes elèctriques)",
|
||||
"cs": "nabíjecí stanice pro elektrokola s běžnou evropskou zástrčkou <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (určeno k nabíjení elektrických kol)",
|
||||
"da": "en ladestation til elektriske cykler med et normalt europæisk vægstik <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (beregnet til opladning af elektriske cykler)",
|
||||
"de": "eine Ladestation für Elektrofahrräder mit einer normalen europäischen Steckdose <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (zum Laden von Elektrofahrrädern)",
|
||||
"de": "eine Ladestation für Elektrofahrräder",
|
||||
"es": "una estación de carga para bicicletas eléctricas con un enchufe de pared europeo normal <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (pensado para cargar bicicletas eléctricas)"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -735,30 +735,32 @@
|
|||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"marker": [{
|
||||
"icon": "pin",
|
||||
"color": "#fff"
|
||||
},{
|
||||
"icon": {
|
||||
"render":"./assets/themes/charging_stations/plug.svg",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "bicycle=yes",
|
||||
"then": "./assets/themes/charging_stations/bicycle.svg"
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"or": [
|
||||
"car=yes",
|
||||
"motorcar=yes"
|
||||
]
|
||||
"marker": [
|
||||
{
|
||||
"icon": "pin",
|
||||
"color": "#fff"
|
||||
},
|
||||
{
|
||||
"icon": {
|
||||
"render": "./assets/themes/charging_stations/plug.svg",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "bicycle=yes",
|
||||
"then": "./assets/themes/charging_stations/bicycle.svg"
|
||||
},
|
||||
"then": "./assets/themes/charging_stations/car.svg"
|
||||
}
|
||||
]
|
||||
|
||||
{
|
||||
"if": {
|
||||
"or": [
|
||||
"car=yes",
|
||||
"motorcar=yes"
|
||||
]
|
||||
},
|
||||
"then": "./assets/themes/charging_stations/car.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}],
|
||||
],
|
||||
"iconBadges": [
|
||||
{
|
||||
"if": {
|
||||
|
@ -802,12 +804,11 @@
|
|||
"tags": [
|
||||
"amenity=charging_station",
|
||||
"motorcar=no",
|
||||
"bicycle=yes",
|
||||
"socket:typee=1"
|
||||
"bicycle=yes"
|
||||
],
|
||||
"title": {
|
||||
"en": "charging station for electrical bikes with a normal european wall plug <img src='./assets/layers/charging_station/TypeE.svg' class='w-4 h-4 mx-1 bg-white rounded-full'/>",
|
||||
"nl": "oplaadpunt voor elektrische fietsen met een gewone, europese stekker <img src='./assets/layers/charging_station/TypeE.svg' class='w-4 h-4 mx-1 bg-white rounded-full'/>"
|
||||
"en": "charging station for electrical bikes",
|
||||
"nl": "oplaadpunt voor elektrische fietsen"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -91,7 +91,7 @@ function run(file, protojson) {
|
|||
if (e.countryWhiteList.length > 0) {
|
||||
// This is a 'hideInAnswer', thus _reverse_ logic!
|
||||
const countries = e.countryWhiteList.map(country => "_country!=" + country) //HideInAnswer if it is in the wrong country
|
||||
json["hideInAnswer"] = {or: countries}
|
||||
json["hideInAnswer"] = {and: countries} // Should be and, as we want to hide if it does not match any of the countries
|
||||
} else if (e.countryBlackList.length > 0) {
|
||||
const countries = e.countryBlackList.map(country => "_country=" + country) //HideInAnswer if it is in the wrong country
|
||||
json["hideInAnswer"] = {or: countries}
|
||||
|
|
|
@ -1993,7 +1993,7 @@
|
|||
"name": "Ladestationen",
|
||||
"presets": {
|
||||
"0": {
|
||||
"title": "eine Ladestation für Elektrofahrräder mit einer normalen europäischen Steckdose <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (zum Laden von Elektrofahrrädern)"
|
||||
"title": "eine Ladestation für Elektrofahrräder"
|
||||
},
|
||||
"1": {
|
||||
"title": "Eine Ladestation für Elektrofahrzeuge"
|
||||
|
|
|
@ -1993,7 +1993,7 @@
|
|||
"name": "Charging stations",
|
||||
"presets": {
|
||||
"0": {
|
||||
"title": "a charging station for electrical bikes with a normal european wall plug <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (meant to charge electrical bikes)"
|
||||
"title": "a charging station for electrical bikes"
|
||||
},
|
||||
"1": {
|
||||
"title": "a charging station for cars"
|
||||
|
|
|
@ -1842,7 +1842,7 @@
|
|||
"name": "Oplaadpunten",
|
||||
"presets": {
|
||||
"0": {
|
||||
"title": "een oplaadpunt voor elektrische fietsen met een gewoon Europees stopcontact <img src='./assets/layers/charging_station/typee.svg' style='width: 2rem; height: 2rem; float: left; background: white; border-radius: 1rem; margin-right: 0.5rem'/> (speciaal bedoeld voor fietsen)"
|
||||
"title": "een oplaadpunt voor elektrische fietsen"
|
||||
},
|
||||
"1": {
|
||||
"title": "een oplaadstation voor elektrische auto's"
|
||||
|
|
Loading…
Reference in a new issue