Interactive interface for browsing global, full-resolution satellite imagery
Change floor to round when reducing discrete palettes for sidebar (#4651)
Tom Cariello5f74fd16b356
diff --git a/web/js/modules/palettes/selectors.js b/web/js/modules/palettes/selectors.jsindex a78b73275..08d317456 100644--- a/web/js/modules/palettes/selectors.js+++ b/web/js/modules/palettes/selectors.js@@ -201,7 +201,7 @@ const updateLookup = function(layerId, palettesObj, state) {}} else {sourcePercent = index / sourceCount;- targetIndex = Math.floor(sourcePercent * targetCount);+ targetIndex = Math.round(sourcePercent * targetCount);}targetColor = target[targetIndex];}