Skip to content

Commit

Permalink
fix: regression
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Sep 18, 2024
1 parent cce2d01 commit 656d177
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 @@ -464,7 +464,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 656d177

Please sign in to comment.