Interactive interface for browsing global, full-resolution satellite imagery
prevent running data of vector layers in compare mode with exception of the active side of the swipe mode #2439
Benjamin King4469f310b84b
diff --git a/web/js/map/runningdata.js b/web/js/map/runningdata.jsindex 9226c1ebd..f43cba6a6 100644--- a/web/js/map/runningdata.js+++ b/web/js/map/runningdata.js@@ -71,7 +71,7 @@ export function MapRunningData(models, compareUi, store) {const [lon, lat] = map.getCoordinateFromPixel(pixels);if (!(lon < -180 || lon > 180 || lat < -90 || lat > 90)) {map.forEachFeatureAtPixel(pixels, (feature, layer) => {- if (!layer.wv || !layer.wv.def) return;+ if (!layer.wv || !layer.wv.def || !isFromActiveCompareRegion(map, pixels, layer.wv)) return;let color;const def = layer.wv.def;const identifier = def.palette.styleProperty;