mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
update photos immediately when filters change
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user