forked from MapComplete/MapComplete
Fix questions: applicable mappings are now calculated dynamically; charging station theme now only shows applicable plugs based on the allowed vehicle types
This commit is contained in:
parent
bedc576313
commit
df34239256
14 changed files with 3677 additions and 3359 deletions
|
@ -16,4 +16,20 @@ AT this point, most of the work should be done; feel free to send a PR. If you w
|
|||
- 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
|
||||
- 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue