From aa9a8979e1a0b40da8f95c8937337a2fed2c6c4d Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sat, 24 Apr 2021 12:43:47 +1000 Subject: [PATCH] Remove grid lowest resolution lightness calculation --- src/components/map/MapGrid.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/components/map/MapGrid.js b/src/components/map/MapGrid.js index 6b30859..9fd2613 100644 --- a/src/components/map/MapGrid.js +++ b/src/components/map/MapGrid.js @@ -11,14 +11,6 @@ import Grid from "../Grid"; function MapGrid({ map }) { let mapSourceMap = map; - // Use lowest resolution for grid lightness - if (map && map.type === "file" && map.resolutions) { - // FIXME - move to resolutions array - const resolutionArray = Object.keys(map.resolutions); - if (resolutionArray.length > 0) { - mapSourceMap.quality = resolutionArray[0]; - } - } const mapURL = useDataURL(mapSourceMap, defaultMapSources); const [mapImage, mapLoadingStatus] = useImage(mapURL);