Interactive interface for browsing global, full-resolution satellite imagery
prevent features without def - ie measure
Ed Plato5da0df71b06a
diff --git a/web/js/modules/vector-styles/util.js b/web/js/modules/vector-styles/util.jsindex f2b745ec7..b1fe79dc4 100644--- a/web/js/modules/vector-styles/util.js+++ b/web/js/modules/vector-styles/util.js@@ -220,10 +220,12 @@ function getModalContentsAtPixel(mapProps, config, compareState) {const { pixels, map, swipeOffset } = mapProps;map.forEachFeatureAtPixel(pixels, (feature, layer) => {const def = lodashGet(layer, 'wv.def');+ if (!def) {+ return;+ }+const type = feature.getType();- if (- !def- || lodashIncludes(def.clickDisabledFeatures, type)+ if (lodashIncludes(def.clickDisabledFeatures, type)|| !isFromActiveCompareRegion(map, pixels, layer.wv, compareState, swipeOffset)) {return;}