mapcomplete/assets/layers/charging_station
2024-08-16 10:06:59 +02:00
..
as3112.svg Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
as3112.svg.license Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
bosch-3pin.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
bosch-3pin.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
bosch-5pin.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
bosch-5pin.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
bs1363.svg Add BS1363 plug (#1907) 2024-04-21 00:38:04 +02:00
bs1363.svg.license Add BS1363 plug (#1907) 2024-04-21 00:38:04 +02:00
CEE7_4F.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
CEE7_4F.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
Chademo_type4.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
Chademo_type4.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
charging_station.json Chore: translation sync, lint themes and layer files 2024-08-16 10:06:59 +02:00
charging_station.proto.json Fix: units which used a 'string'-validator might not detect the actual denomination. They have now been forbidden and fixed 2024-06-19 01:33:30 +02:00
csvToJson.ts Apply #2012 via script 2024-07-09 14:42:20 +02:00
license_info.json Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
nema-5-15.svg Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
nema-5-15.svg.license Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
nema-5-20.svg Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
nema-5-20.svg.license Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
README.md Editorial improvements to Chargings Station theme readme 2022-04-08 13:05:47 +02:00
Tesla-hpwc-model-s.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
Tesla-hpwc-model-s.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
Type1-ccs.svg Resize all SVG images 2022-01-06 20:54:00 +01:00
Type1-ccs.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
Type1_J1772.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
Type1_J1772.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
Type2_CCS.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
Type2_CCS.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
Type2_socket.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
Type2_socket.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
Type2_tethered.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
Type2_tethered.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
Type3c.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
Type3c.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
TypeE.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
TypeE.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00
typej.svg Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
typej.svg.license Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
types.csv Add most domestic plug types above 50 uses (#1907) 2024-05-14 00:05:42 +02:00
under_construction.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
under_construction.svg.license Add licenses on the last files 2023-07-27 14:10:08 +02:00
usb_port.svg Autoreformat all the things 2022-01-18 18:52:42 +01:00
usb_port.svg.license More steps toward REUSE-compliance 2023-07-27 03:32:49 +02:00

The charging station theme

As you might have noticed, the charging station theme is complicated and large.

There are a ton of repititive questions. Luckily, we can generate those.

If you want to add a missing socket type, then:

  • Add all the properties in 'types.csv'
  • Add an icon. (Note: icons are way better as pictures as they are perceived more abstractly)
  • Update 'license_info.json' with the copyright info of the new icon. Note that we strive to have Creative Commons icons only (though there are exceptions)

At this point, most of the work should be done; feel free to send a PR. If you would like to test it locally first (which is recommended) and have a working dev environment, then run:

  • Run ts-node csvToJson.ts which will generate a new charging_station.json based on the protojson
  • Run npm run query:licenses to get an interactive program to add the license of your artwork, followed by npm run generate:licenses
  • Run npm run generate:layeroverview to generate the layer files
  • Run npm run start to run the instance

The CSV File

The columns in the CSV file are:

  • key: the key as described on the wiki, starts with socket:
  • image: The associated image (a .svg)
  • description:en A description in english
  • description:nl A description in english
  • countryWhiteList: Only show this plug type in these countries
  • countryBlackList: Don't show this plug type in these countries. NOt compatibel with the whiteList
  • commonVoltages, commonCurrents, commonOutputs: common values for these tags
  • associatedVehicleTypes and neverAssociatedWith: these work in tandem to hide options. If every associated vehicle type is no, then the option is hidden If at least one neverAssociatedVehicleType is yes and none of the associated types is yes, then the option is hidden too
  • extraVisualisationCondition: in some exceptional cases, a socket type is branded differently. This extra condition allows to hide these cases in the big multi-answer