forked from MapComplete/MapComplete
Fix GRB theme
This commit is contained in:
parent
c94d9d838e
commit
7b837d7435
2 changed files with 13 additions and 4 deletions
|
@ -209,9 +209,9 @@ export class BBox {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private check() {
|
private check() {
|
||||||
if (isNaN(this.maxLon) || isNaN(this.maxLat) || isNaN(this.minLon) || isNaN(this.minLat)) {
|
if (isNaN(this.maxLon) || isNaN(this.maxLat) || isNaN(this.minLon) || isNaN(this.minLat)) {
|
||||||
console.log(this);
|
console.trace("BBox with NaN detected:", this);
|
||||||
throw "BBOX has NAN";
|
throw "BBOX has NAN";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -504,14 +504,23 @@ export class ImportWayButton extends AbstractImportButton implements AutoAction
|
||||||
mergeConfigs,
|
mergeConfigs,
|
||||||
"import"
|
"import"
|
||||||
)
|
)
|
||||||
} else {
|
} else if(feature.geometry.type === "Polygon"){
|
||||||
|
const outer = coors[0]
|
||||||
|
return new CreateWayWithPointReuseAction(
|
||||||
|
args.newTags.data,
|
||||||
|
outer,
|
||||||
|
state,
|
||||||
|
mergeConfigs
|
||||||
|
)
|
||||||
|
}else if(feature.geometry.type === "LineString"){
|
||||||
return new CreateWayWithPointReuseAction(
|
return new CreateWayWithPointReuseAction(
|
||||||
args.newTags.data,
|
args.newTags.data,
|
||||||
coors,
|
coors,
|
||||||
state,
|
state,
|
||||||
mergeConfigs
|
mergeConfigs
|
||||||
)
|
)
|
||||||
|
}else{
|
||||||
|
throw "Unsupported type"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue