Fix GRB theme

This commit is contained in:
Pieter Vander Vennet 2022-02-24 03:09:30 +01:00
parent c94d9d838e
commit 7b837d7435
2 changed files with 13 additions and 4 deletions

View file

@ -504,14 +504,23 @@ export class ImportWayButton extends AbstractImportButton implements AutoAction
mergeConfigs,
"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(
args.newTags.data,
coors,
state,
mergeConfigs
)
}else{
throw "Unsupported type"
}
}
}