Interactive interface for browsing global, full-resolution satellite imagery
Adjusted hexColor comparison threshold to fully convert fire wms layers
ZachTRicee7e030798d8b
diff --git a/web/js/ol.wv/ol.wv.lookupimagetile.js b/web/js/ol.wv/ol.wv.lookupimagetile.jsindex 5638dd32d..de7abd574 100644--- a/web/js/ol.wv/ol.wv.lookupimagetile.js+++ b/web/js/ol.wv/ol.wv.lookupimagetile.js@@ -147,7 +147,7 @@ ol.wv.LookupWMS.prototype.load = function() {for (var i = 0; i < octets; i += 4) {var hexSource = wv.util.rgbaToHex(pixels[i + 0], pixels[i + 1], pixels[i + 2]);- if (wv.util.hexColorDelta(hexSource, defaultLookupHex) < 5) { // If the two colors are close+ if (wv.util.hexColorDelta(hexSource, defaultLookupHex) < 125) { // If the two colors are closeif (newLookup) {pixels[i + 0] = newLookup.r;pixels[i + 1] = newLookup.g;