update photos immediately when filters change

This commit is contained in:
Martin Raifer
2024-07-29 15:47:24 +02:00
parent df3b5a4440
commit 608251a6ab
2 changed files with 2 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ export function svgMapilioImages(projection, context, dispatch) {
svgMapilioImages.enabled = _;
if (svgMapilioImages.enabled) {
showLayer();
context.photos().on('change.mapilio_images', null);
context.photos().on('change.mapilio_images', update);
} else {
hideLayer();
context.photos().on('change.mapilio_images', null);

View File

@@ -355,7 +355,7 @@ export function svgPanoramaxImages(projection, context, dispatch) {
svgPanoramaxImages.enabled = _;
if (svgPanoramaxImages.enabled) {
showLayer();
context.photos().on('change.panoramax_images', null);
context.photos().on('change.panoramax_images', update);
} else {
hideLayer();
context.photos().on('change.panoramax_images', null);