Fix onwheels statistics, fix #1850

This commit is contained in:
Pieter Vander Vennet 2024-03-28 03:39:46 +01:00
parent e5d9e253ef
commit df0b43ba41
4 changed files with 56 additions and 40 deletions

View file

@ -1153,10 +1153,11 @@ export default class SpecialVisualizations {
constr: (state) => {
return new Combine(
state.layout.layers
.filter((l) => l.name !== null)
.filter((l) => l.name !== null && l.title && state.perLayer.get(l.id) !== undefined )
.map(
(l) => {
const fs = state.perLayer.get(l.id)
console.log(">>>", l.id, fs)
const bbox = state.mapProperties.bounds
const fsBboxed = new BBoxFeatureSourceForLayer(fs, bbox)
return new StatisticsPanel(fsBboxed)