Skip to content

Commit

Permalink
fix: restored custom probe function in time series
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Sep 5, 2024
1 parent 7b1927a commit a3cbe58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/utils.time-series.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a3cbe58

Please sign in to comment.