Interactive interface for browsing global, full-resolution satellite imagery
use valuemap if exists #2144
Benjamin King4faa344b161c
diff --git a/web/js/components/vector-metadata/table.js b/web/js/components/vector-metadata/table.jsindex 25bff5e37..56f3959b2 100644--- a/web/js/components/vector-metadata/table.js+++ b/web/js/components/vector-metadata/table.js@@ -40,7 +40,8 @@ export default class VectorMetaTable extends React.Component {<tbody>{metaLegend.map((properties, index) => {const featureId = properties.Identifier;- const value = metaFeatures[featureId];+ const hasValueMap = !!properties.ValueMap;+ const value = properties.ValueMap ? properties.ValueMap[metaFeatures[featureId]] : metaFeatures[featureId];const id = util.cleanId(String(title + '-' + (metaIndex + index)));if (!value) return undefined;return (