Skip to content

Commit

Permalink
fix: regression
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Sep 10, 2024
1 parent fddc0d5 commit 6e014c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/components/map/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ export function createLayerFromConfig(config, map, _options = {}) {
vectorSource.set('updateTime', (time) => {
vectorSource.setUrl(time[1][0]);
});
} else {
// if config.urlTemplateSelectedFeature
// then we do not change on time change, but on selected feature change
} else if (!config.urlTemplateSelectedFeature) {
const updateUrl = replaceUrlPlaceholders(config.url, config, options);
vectorSource.setUrl(updateUrl);
vectorSource.set('updateTime', (time, area, configUpdate) => {
Expand Down

0 comments on commit 6e014c6

Please sign in to comment.