Fix making changes to relations

This commit is contained in:
pietervdvn 2021-07-28 15:50:33 +02:00
parent 0ab0d159cc
commit 0c760c8458

View file

@ -439,6 +439,8 @@ export class OsmWay extends OsmObject {
const node = nodeDict.get(nodeId)
if(node === undefined){
console.error("Error: node ", nodeId, "not found in ", nodeDict)
// This is probably part of a relation which hasn't been fully downloaded
continue;
}
const cp = node.centerpoint();
this.coordinates.push(cp);