forked from MapComplete/MapComplete
Fix build
This commit is contained in:
parent
91ec409915
commit
affe8237dc
1 changed files with 7 additions and 5 deletions
|
@ -162,8 +162,10 @@ export default class LayerConfig {
|
||||||
}
|
}
|
||||||
this.presets = (json.presets ?? []).map((pr, i) => {
|
this.presets = (json.presets ?? []).map((pr, i) => {
|
||||||
|
|
||||||
let preciseInput = {
|
let preciseInput: any = {
|
||||||
preferredBackground: ["photo"]
|
preferredBackground: ["photo"],
|
||||||
|
snapToLayers: undefined,
|
||||||
|
maxSnapDistance: undefined
|
||||||
};
|
};
|
||||||
if (pr.preciseInput !== undefined) {
|
if (pr.preciseInput !== undefined) {
|
||||||
if (pr.preciseInput === true) {
|
if (pr.preciseInput === true) {
|
||||||
|
@ -564,11 +566,11 @@ export default class LayerConfig {
|
||||||
const renderValue = iconOverlay
|
const renderValue = iconOverlay
|
||||||
.then
|
.then
|
||||||
.GetRenderValue(tgs)
|
.GetRenderValue(tgs)
|
||||||
|
|
||||||
if(renderValue === undefined){
|
if (renderValue === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const partDefs = renderValue.txt.split(";")
|
const partDefs = renderValue.txt.split(";")
|
||||||
.filter((prt) => prt != "");
|
.filter((prt) => prt != "");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue