Fix error when loading jpeg mbtile file?

This commit is contained in:
Garth Vander Houwen 2023-12-08 12:36:42 -08:00
parent bd5191ccd2
commit a8787ebc21

View file

@ -60,7 +60,7 @@ class LocalMBTileOverlay: MKTileOverlay {
// make sure it's raster
let formatQuery = try mb.pluck(metadata.select(value).filter(name == "format"))
if formatQuery?[value] == nil || (formatQuery![value] != "jpg" && formatQuery![value] != "png") {
if formatQuery?[value] == nil || (formatQuery![value] != "jpeg" && formatQuery![value] != "jpg" && formatQuery![value] != "png") {
throw MapTileError.invalidFormat
}