mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
add AVIF enum in JS client [#116]
This commit is contained in:
@@ -27,6 +27,8 @@ export const leafletRasterLayer = (source: PMTiles, options: any) => {
|
||||
mimeType = "image/jpeg";
|
||||
} else if (header.tileType == 4) {
|
||||
mimeType = "image/webp";
|
||||
} else if (header.tileType == 5) {
|
||||
mimeType = "image/avif";
|
||||
}
|
||||
});
|
||||
loaded = true;
|
||||
|
||||
Reference in New Issue
Block a user