forked from MapComplete/MapComplete
Update LayoutConfigJson.ts
This commit is contained in:
parent
c739fe5424
commit
07d39d0f36
1 changed files with 9 additions and 3 deletions
|
@ -120,7 +120,7 @@ export interface LayoutConfigJson {
|
||||||
*
|
*
|
||||||
* E.g.: if there are two layers defined:
|
* E.g.: if there are two layers defined:
|
||||||
* ```
|
* ```
|
||||||
* "layers"[
|
* "layers":[
|
||||||
* {"title": ..., "tagRenderings": [...], "osmSource":{"tags": ...}},
|
* {"title": ..., "tagRenderings": [...], "osmSource":{"tags": ...}},
|
||||||
* {"title", ..., "tagRenderings", [...], "osmSource":{"tags" ...}}
|
* {"title", ..., "tagRenderings", [...], "osmSource":{"tags" ...}}
|
||||||
* ]
|
* ]
|
||||||
|
@ -132,13 +132,19 @@ export interface LayoutConfigJson {
|
||||||
* "osmSource":{"geoJsonSource":"xyz"}
|
* "osmSource":{"geoJsonSource":"xyz"}
|
||||||
* }
|
* }
|
||||||
* then the result will be that all the layers will have these properties applied and result in:
|
* 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"}},
|
||||||
* {"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;
|
overrideAll?: any;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue