Small tweaks

This commit is contained in:
Pieter Vander Vennet 2021-07-28 15:14:13 +02:00
parent 1d2d098167
commit 0ab0d159cc
6 changed files with 52 additions and 21 deletions

View file

@ -437,6 +437,9 @@ export class OsmWay extends OsmObject {
for (const nodeId of element.nodes) {
const node = nodeDict.get(nodeId)
if(node === undefined){
console.error("Error: node ", nodeId, "not found in ", nodeDict)
}
const cp = node.centerpoint();
this.coordinates.push(cp);
latSum = cp[0]