Fix null in coordinates

This commit is contained in:
Pieter Vander Vennet 2024-02-20 02:17:30 +01:00
parent dc88d094c4
commit 049e712981

View file

@ -304,10 +304,12 @@ new Server(2345, { ignorePathPrefix: ["summary"] }, [
Tiles.tile_index(Number(z), Number(x), Number(y)) Tiles.tile_index(Number(z), Number(x), Number(y))
) )
latSum += count.lat * count.count
lonSum += count.lon * count.count
properties[layer] = count.count properties[layer] = count.count
sum += count.count if (count.count !== 0) {
latSum += count.lat * count.count
lonSum += count.lon * count.count
sum += count.count
}
} }
properties["lon"] = lonSum / sum properties["lon"] = lonSum / sum