Added map quality option and selector in map select screen

This commit is contained in:
Mitchell McCaffrey
2020-07-15 17:17:11 +10:00
parent b1d542d170
commit e4b3897ac4
5 changed files with 73 additions and 25 deletions

View File

@@ -32,9 +32,8 @@ function MapInteraction({
}) {
let mapSourceMap = map;
if (map && map.type === "file") {
// if no file loaded but we have other resolutions
if (map.resolutions.length > 0 && !map.file) {
mapSourceMap = map.resolutions[map.resolutions.length - 1];
if (map.resolutions && map.quality !== "original") {
mapSourceMap = map.resolutions[map.quality];
}
}