forked from MapComplete/MapComplete
Fix generateLayerOverview, drop priviliged 'icons.json' from code
This commit is contained in:
parent
df3ca4cce3
commit
36aed99843
10 changed files with 267 additions and 167 deletions
|
@ -82,10 +82,12 @@ export default class LayoutConfig {
|
|||
this.credits = json.credits
|
||||
this.language = json.mustHaveLanguage ?? Object.keys(json.title)
|
||||
this.usedImages = Array.from(
|
||||
new ExtractImages(official, undefined).convertStrict(
|
||||
json,
|
||||
"while extracting the images of " + json.id + " " + context ?? ""
|
||||
)
|
||||
new ExtractImages(official, undefined)
|
||||
.convertStrict(
|
||||
json,
|
||||
"while extracting the images of " + json.id + " " + context ?? ""
|
||||
)
|
||||
.map((i) => i.path)
|
||||
).sort()
|
||||
{
|
||||
if (typeof json.title === "string") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue