Skip to content

Commit 656d177

Browse files
committed
fix: regression
1 parent cce2d01 commit 656d177

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/components/map/layers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ export function createLayerFromConfig(config, map, _options = {}) {
464464
vectorSource.set('updateTime', (time) => {
465465
vectorSource.setUrl(time[1][0]);
466466
});
467-
} else {
467+
// if config.urlTemplateSelectedFeature
468+
// then we do not change on time change, but on selected feature change
469+
} else if (!config.urlTemplateSelectedFeature) {
468470
const updateUrl = replaceUrlPlaceholders(config.url, config, options);
469471
vectorSource.setUrl(updateUrl);
470472
vectorSource.set('updateTime', (time, area, configUpdate) => {

0 commit comments

Comments
 (0)