diff --git a/.vscode/settings.json b/.vscode/settings.json
index 8e1ede94e..e975a613f 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -18,5 +18,8 @@
"[svelte]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
- "editor.formatOnSave": true
+ "editor.formatOnSave": true,
+ "files.associations": {
+ "*.protojson": "json"
+ }
}
diff --git a/assets/layers/charging_station/charging_station.json b/assets/layers/charging_station/charging_station.json
index 91d305c3f..691616f83 100644
--- a/assets/layers/charging_station/charging_station.json
+++ b/assets/layers/charging_station/charging_station.json
@@ -329,15 +329,80 @@
"class": "medium"
},
"hideInAnswer": {
- "or": [
- "_country!=be",
+ "and": [
+ "_country!=af",
+ "_country!=al",
+ "_country!=dz",
+ "_country!=as",
+ "_country!=ad",
+ "_country!=ao",
+ "_country!=am",
+ "_country!=aw",
+ "_country!=az",
+ "_country!=by",
+ "_country!=bt",
+ "_country!=ba",
+ "_country!=bg",
+ "_country!=cv",
+ "_country!=td",
+ "_country!=cl",
+ "_country!=hr",
+ "_country!=dk",
+ "_country!=eg",
+ "_country!=ee",
+ "_country!=et",
+ "_country!=fo",
"_country!=fr",
- "_country!=ma",
- "_country!=tn",
- "_country!=pl",
- "_country!=cs",
+ "_country!=pf",
+ "_country!=ge",
+ "_country!=gr",
+ "_country!=gl",
+ "_country!=gn",
+ "_country!=gw",
+ "_country!=is",
+ "_country!=id",
+ "_country!=ir",
+ "_country!=jo",
+ "_country!=kz",
+ "_country!=kg",
+ "_country!=la",
+ "_country!=lv",
+ "_country!=lr",
+ "_country!=ly",
+ "_country!=lt",
+ "_country!=lu",
+ "_country!=mo",
+ "_country!=mr",
+ "_country!=md",
+ "_country!=mc",
+ "_country!=mn",
+ "_country!=me",
+ "_country!=mz",
+ "_country!=nl",
+ "_country!=nc",
+ "_country!=ne",
+ "_country!=kp",
+ "_country!=mk",
+ "_country!=pt",
+ "_country!=qa",
+ "_country!=ro",
+ "_country!=ru",
+ "_country!=rw",
+ "_country!=sm",
"_country!=sk",
- "_country!=mo"
+ "_country!=si",
+ "_country!=kr",
+ "_country!=es",
+ "_country!=sr",
+ "_country!=tj",
+ "_country!=th",
+ "_country!=tl",
+ "_country!=tr",
+ "_country!=tm",
+ "_country!=ua",
+ "_country!=uy",
+ "_country!=uz",
+ "_country!=vn"
]
}
},
@@ -378,6 +443,52 @@
"icon": {
"path": "./assets/layers/charging_station/TypeE.svg",
"class": "medium"
+ },
+ "hideInAnswer": {
+ "and": [
+ "_country!=be",
+ "_country!=bj",
+ "_country!=bf",
+ "_country!=bi",
+ "_country!=cm",
+ "_country!=cf",
+ "_country!=td",
+ "_country!=km",
+ "_country!=cz",
+ "_country!=dk",
+ "_country!=dj",
+ "_country!=gq",
+ "_country!=et",
+ "_country!=fo",
+ "_country!=fr",
+ "_country!=gf",
+ "_country!=pf",
+ "_country!=gl",
+ "_country!=gp",
+ "_country!=gw",
+ "_country!=la",
+ "_country!=lr",
+ "_country!=mg",
+ "_country!=ml",
+ "_country!=mq",
+ "_country!=mr",
+ "_country!=mu",
+ "_country!=mc",
+ "_country!=mn",
+ "_country!=ma",
+ "_country!=ne",
+ "_country!=pl",
+ "_country!=pt",
+ "_country!=rw",
+ "_country!=mf",
+ "_country!=pm",
+ "_country!=sn",
+ "_country!=sk",
+ "_country!=sy",
+ "_country!=tl",
+ "_country!=tn",
+ "_country!=uz"
+ ]
}
},
{
@@ -1031,7 +1142,7 @@
]
},
{
- "or": [
+ "and": [
"_country!=us"
]
}
@@ -5102,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 (meant to charge electrical bikes)",
- "nl": "een oplaadpunt voor elektrische fietsen met een gewoon Europees stopcontact
(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
(destinat a carregar bicicletes elèctriques)",
"cs": "nabíjecí stanice pro elektrokola s běžnou evropskou zástrčkou
(určeno k nabíjení elektrických kol)",
"da": "en ladestation til elektriske cykler med et normalt europæisk vægstik
(beregnet til opladning af elektriske cykler)",
- "de": "eine Ladestation für Elektrofahrräder mit einer normalen europäischen Steckdose
(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
(pensado para cargar bicicletas eléctricas)"
}
},
diff --git a/assets/layers/charging_station/charging_station.protojson b/assets/layers/charging_station/charging_station.protojson
index 828045f39..7f8356a66 100644
--- a/assets/layers/charging_station/charging_station.protojson
+++ b/assets/layers/charging_station/charging_station.protojson
@@ -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
",
- "nl": "oplaadpunt voor elektrische fietsen met een gewone, europese stekker
"
+ "en": "charging station for electrical bikes",
+ "nl": "oplaadpunt voor elektrische fietsen"
}
},
{
@@ -949,4 +950,4 @@
},
"neededChangesets": 10
}
-}
+}
\ No newline at end of file
diff --git a/assets/layers/charging_station/csvToJson.ts b/assets/layers/charging_station/csvToJson.ts
index ff1a50fb6..e0ee8f610 100644
--- a/assets/layers/charging_station/csvToJson.ts
+++ b/assets/layers/charging_station/csvToJson.ts
@@ -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}
diff --git a/assets/layers/charging_station/types.csv b/assets/layers/charging_station/types.csv
index d31c004ba..8d9795616 100644
--- a/assets/layers/charging_station/types.csv
+++ b/assets/layers/charging_station/types.csv
@@ -1,6 +1,6 @@
key,image,description:en,countryWhiteList,countryBlackList,commonVoltages,commonCurrents,commonOutputs,description:nl,associatedVehicleTypes,neverAssociatedWith,extraVisualisationCondition
-socket:schuko,CEE7_4F.svg,Schuko wall plug without ground pin (CEE7/4 type F),be;fr;ma;tn;pl;cs;sk;mo,,230,16,3.6 kW,Schuko stekker zonder aardingspin (CEE7/4 type F),*,,
-socket:typee,TypeE.svg,European wall plug with ground pin (CEE7/4 type E),,,230,16,3 kW;22 kW;,Europese stekker met aardingspin (CEE7/4 type E),*,,
+socket:schuko,CEE7_4F.svg,Schuko wall plug without ground pin (CEE7/4 type F),af;al;dz;as;ad;ao;am;aw;az;by;bt;ba;bg;cv;td;cl;hr;dk;eg;ee;et;fo;fr;pf;ge;gr;gl;gn;gw;is;id;ir;jo;kz;kg;la;lv;lr;ly;lt;lu;mo;mr;md;mc;mn;me;mz;nl;nc;ne;kp;mk;pt;qa;ro;ru;rw;sm;sk;si;kr;es;sr;tj;th;tl;tr;tm;ua;uy;uz;vn,,230,16,3.6 kW,Schuko stekker zonder aardingspin (CEE7/4 type F),*,,
+socket:typee,TypeE.svg,European wall plug with ground pin (CEE7/4 type E),be;bj;bf;bi;cm;cf;td;km;cz;dk;dj;gq;et;fo;fr;gf;pf;gl;gp;gw;la;lr;mg;ml;mq;mr;mu;mc;mn;ma;ne;pl;pt;rw;mf;pm;sn;sk;sy;tl;tn;uz,,230,16,3 kW;22 kW;,Europese stekker met aardingspin (CEE7/4 type E),*,,
socket:chademo,Chademo_type4.svg,Chademo,,,500,120,50 kW,Chademo,car;motorcar;hgv;bus,bicycle;scooter,
socket:type1_cable,Type1_J1772.svg,Type 1 with cable (J1772),,,200;240,32,3.7 kW;7 kW,Type 1 met kabel (J1772),car;motorcar;hgv;bus,bicycle;scooter,
socket:type1,Type1_J1772.svg,Type 1 without cable (J1772),,,200;240,32,3.7 kW;6.6 kW;7 kW;7.2 kW,Type 1 zonder kabel (J1772),car;motorcar;hgv;bus,bicycle;scooter,
diff --git a/assets/themes/cyclenodes/cyclenodes.json b/assets/themes/cyclenodes/cyclenodes.json
index 2bb5eb2bb..8ecb092d6 100644
--- a/assets/themes/cyclenodes/cyclenodes.json
+++ b/assets/themes/cyclenodes/cyclenodes.json
@@ -112,7 +112,15 @@
"lineRendering": [
{
"width": "4",
- "color": "#00a703"
+ "color": {
+ "render": "#00a703",
+ "mappings": [
+ {
+ "if": "state=proposed",
+ "then": "#f0a513"
+ }
+ ]
+ }
}
],
"pointRendering": null
@@ -134,8 +142,9 @@
},
"source": {
"osmTags": {
- "and": [
- "rcn_ref~*"
+ "or": [
+ "rcn_ref~*",
+ "proposed:rcn_ref~*"
]
}
},
@@ -146,14 +155,15 @@
"centroid"
],
"label": {
+ "render": "