Small fixes

This commit is contained in:
Pieter Vander Vennet 2021-05-20 12:27:33 +02:00
parent 092a627b64
commit 95f421a6ae
5 changed files with 17 additions and 9 deletions

View file

@ -110,7 +110,7 @@ Some advanced functions are available on <b>feat</b> as well:
let closestFeature = undefined;
let closestDistance = undefined;
for (const otherFeature of features) {
if (otherFeature == feature) {
if (otherFeature == feature || otherFeature.id == feature.id) {
continue; // We ignore self
}
let distance = undefined;