Ajout de la propriete "ignore" pour ignorer l'ajout d'une feature

This commit is contained in:
EpicKiwi 2026-06-28 17:08:20 +02:00
parent 5832b56787
commit b258e30bee
Signed by: epickiwi
GPG key ID: C4B28FD2729941CE
4 changed files with 7 additions and 2 deletions

View file

@ -139,6 +139,10 @@ export class PlaceDatabase extends EventTarget {
for(let [i, feature] of Object.entries(geojson.features)){
if(feature.properties["ignore"]){
continue
}
feature.properties = {
...(feature.properties || {}),
[FEATURE_INDEX]: i