Remove grid lowest resolution lightness calculation

This commit is contained in:
Mitchell McCaffrey 2021-04-24 12:43:47 +10:00
parent 9a9b778f04
commit aa9a8979e1

View File

@ -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);