Merge develop
This commit is contained in:
commit
2c480eb9d8
28 changed files with 984 additions and 1324 deletions
|
@ -118,6 +118,9 @@ class LayerOverviewUtils {
|
|||
if (themeFile["units"] !== undefined) {
|
||||
themeErrorCount.push("The theme " + themeFile.id + " has units defined - these should be defined on the layer instead. (Hint: use overrideAll: { '+units': ... }) ")
|
||||
}
|
||||
if (themeFile["roamingRenderings"] !== undefined) {
|
||||
themeErrorCount.push("Theme " + themeFile.id + " contains an old 'roamingRenderings'. Use an 'overrideAll' instead")
|
||||
}
|
||||
for (const layer of themeFile.layers) {
|
||||
if (typeof layer === "string") {
|
||||
if (!knownLayerIds.has(layer)) {
|
||||
|
@ -213,4 +216,4 @@ class LayerOverviewUtils {
|
|||
}
|
||||
}
|
||||
|
||||
new LayerOverviewUtils().main(process.argv)
|
||||
new LayerOverviewUtils().main(process.argv)
|
||||
|
|
|
@ -63,6 +63,11 @@ for (const themeFile of themeFiles) {
|
|||
// @ts-ignore
|
||||
fixLayerConfig(layerConfig)
|
||||
}
|
||||
|
||||
if(themeFile.parsed["roamingRenderings"] !== undefined && themeFile.parsed["roamingRenderings"].length == 0){
|
||||
delete themeFile.parsed["roamingRenderings"]
|
||||
}
|
||||
|
||||
writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " "))
|
||||
}
|
||||
//*/
|
||||
//*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue