forked from MapComplete/MapComplete
Merge master
This commit is contained in:
commit
99edba4c73
12 changed files with 129 additions and 72 deletions
|
@ -157,19 +157,10 @@ export default class DetermineLayout {
|
|||
try {
|
||||
|
||||
let parsed = await Utils.downloadJson(link)
|
||||
console.log("Got ", parsed)
|
||||
parsed = new FixLegacyTheme().convertStrict({
|
||||
tagRenderings: SharedTagRenderings.SharedTagRenderingJson,
|
||||
sharedLayers: new Map<string, LayerConfigJson>() // FIXME: actually add the layers
|
||||
}, parsed, "While loading a dynamic theme")
|
||||
|
||||
|
||||
parsed.id = link;
|
||||
|
||||
|
||||
try {
|
||||
parsed.id = link;
|
||||
const layoutToUse = DetermineLayout.prepCustomTheme(parsed)
|
||||
return new LayoutConfig(layoutToUse,false).patchImages(link, JSON.stringify(layoutToUse));
|
||||
return new LayoutConfig(layoutToUse,false)
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
DetermineLayout.ShowErrorOnCustomTheme(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue