From a3cbe58056cf594c2d64af4f14e108a5200251bc Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Thu, 5 Sep 2024 14:07:23 +0200 Subject: [PATCH] fix: restored custom probe function in time series --- src/utils/utils.time-series.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/utils.time-series.js b/src/utils/utils.time-series.js index 2de5c57f..6a944482 100644 --- a/src/utils/utils.time-series.js +++ b/src/utils/utils.time-series.js @@ -71,12 +71,14 @@ export async function updateTimeSeries (previousTimeSeries) { if (hasProbedLocation()) { const coordinates = kMapUtils.formatUserCoordinates(getProbedLocation().lat, getProbedLocation().lng, Store.get('locationFormat', 'FFf')) const label = `${activity.forecastModel.label} (${coordinates})` + (activity.forecastLevel ? featureLevel : '') + // Due to a possible custom probe function we provide possible visible layers as input + const variableLayers = (activity.probeLocation ? _.values(activity.layers).filter(sift({ variables: { $exists: true }, isVisible: true })) : []) timeSeries.push({ id: 'probe', label, series: kMapUtils.getTimeSeries({ location: getProbedLocation(), - layers: forecastLayers, + layers: forecastLayers.concat(variableLayers), level: activity.selectedLevel, forecastModel: activity.forecastModel, forecastLevel: activity.forecastLevel,