diff --git a/Customizations/JSON/LayoutConfigJson.ts b/Customizations/JSON/LayoutConfigJson.ts index 6d079dc94..ed9d5975e 100644 --- a/Customizations/JSON/LayoutConfigJson.ts +++ b/Customizations/JSON/LayoutConfigJson.ts @@ -120,7 +120,7 @@ export interface LayoutConfigJson { * * E.g.: if there are two layers defined: * ``` - * "layers"[ + * "layers":[ * {"title": ..., "tagRenderings": [...], "osmSource":{"tags": ...}}, * {"title", ..., "tagRenderings", [...], "osmSource":{"tags" ...}} * ] @@ -132,13 +132,19 @@ export interface LayoutConfigJson { * "osmSource":{"geoJsonSource":"xyz"} * } * then the result will be that all the layers will have these properties applied and result in: - * "layers"[ + * "layers":[ * {"title": ..., "tagRenderings": [...], "osmSource":{"tags": ..., "geoJsonSource":"xyz"}}, * {"title", ..., "tagRenderings", [...], "osmSource":{"tags" ..., "geoJsonSource":"xyz"}} * ] * ``` * - * If the overrideAll contains a list where the keys starts with a plus, the values will be appended (instead of discarding the old list) + * If the overrideAll contains a list where the keys starts with a plus, the values will be appended (instead of discarding the old list), for example + * + * "overrideAll": { + * "+tagRenderings": [ { ... some tagrendering ... }] + * } + * + * In the above scenario, `sometagrendering` will be added at the beginning of the tagrenderings of every layer */ overrideAll?: any; diff --git a/Docs/Development_deployment.md b/Docs/Development_deployment.md index 7762c7a9f..ffa69eab3 100644 --- a/Docs/Development_deployment.md +++ b/Docs/Development_deployment.md @@ -18,15 +18,14 @@ Development ----------- - **Windows users**: All scripts are made for linux devices. Use the Ubuntu terminal for Windows (or even better - make the switch ;) ) + **Windows users**: All scripts are made for linux devices. Use the Ubuntu terminal for Windows (or even better - make the switch ;) ). If you are using Visual Studio, open everything in a 'new WSL Window'. To develop and build MapComplete, yo 0. Make sure you have a recent version of nodejs - at least 12.0, preferably 15 0. Make a fork and clone the repository. 1. Install `npm`. Linux: `sudo apt install npm` (or your favourite package manager), Windows: install nodeJS: https://nodejs.org/en/download/ -2. Run `npm install` to install the package dependencies -3. Run `npm run init` and generate some additional dependencies and generated files +3. Run `npm run init` and generate some additional dependencies and generated files. Note that it'll install the dependencies too 4. Run `npm run start` to host a local testversion at http://localhost:1234/index.html 5. By default, a landing page with available themes is served. In order to load a single theme, use `layout=themename` or `userlayout=true#` as [Query parameter](URL_Parameters.md). Note that the shorter URLs (e.g. `bookcases.html`, `aed.html`, ...) _don't_ exist on the development version.