Add point-only layer for nature reserves, mark point-only layer as old (so that geometries will show up)

This commit is contained in:
Pieter Vander Vennet 2021-07-23 19:12:13 +02:00
parent b79be77686
commit 135219b5dc
4 changed files with 31 additions and 6 deletions

View file

@ -274,6 +274,9 @@ async function createOverview(targetdir: string, r: TileRange, z: number, layern
}
const features = JSON.parse(fs.readFileSync(read_path, "UTF-8")).features
const pointsOnly = features.map(f => {
f.properties["_last_edit:timestamp"] = "1970-01-01"
if (f.geometry.type === "Point") {
return f
} else {