Closed lowzonenose closed 8 months ago
@lowzonenose J'ai réussi à faire le filtrage géométrique en ajoutant un filtre à la couche POI OSM : Dans compute()
if (this.poi) { this.poi.ids.forEach( (id) => { if (settings.poisToDisplay[id.split(" ")[0]]) { this.map.setFilter(id, ["all", ["within", this.polygon], this.map.getFilter(id)]); } else { this.map.setFilter(id, ["all", ["==", "true", "false"], this.map.getFilter(id)]); } }); }
@lowzonenose J'ai réussi à faire le filtrage géométrique en ajoutant un filtre à la couche POI OSM : Dans compute()