Interactive interface for browsing global, full-resolution satellite imagery
Add missing vector utilities and actions
ZachTRice280e67a0992b
diff --git a/web/js/modules/vector-styles/selectors.js b/web/js/modules/vector-styles/selectors.jsindex 08b50ce54..59817cb2b 100644--- a/web/js/modules/vector-styles/selectors.js+++ b/web/js/modules/vector-styles/selectors.js@@ -68,6 +68,11 @@ export function findIndex(layerId, type, value, index, groupStr, state) {return result;}+export function setRange(layerId, props, index, palettes, state) {+ // Placeholder filter range function+ return (layerId, props, index, palettes, state);+}+export function setStyleFunction(def, vectorStyleId, vectorStyles, layer, state) {var styleFunction;var layerId = def.id;diff --git a/web/js/modules/vector-styles/util.js b/web/js/modules/vector-styles/util.jsindex 5678906e3..4e816359c 100644--- a/web/js/modules/vector-styles/util.js+++ b/web/js/modules/vector-styles/util.js@@ -31,3 +31,11 @@ export function getVectorStyleAttributeArray(layer) {});return attrArray;}++export function getMinValue(v) {+ return v.length ? v[0] : v;+}++export function getMaxValue(v) {+ return v.length ? v[v.length - 1] : v;+}