Allow for PMTiles with WebP raster tiles

This commit is contained in:
RobLabs.com
2023-03-14 16:58:12 -07:00
parent 06fe05f27a
commit 70c173b7fd

View File

@@ -287,6 +287,7 @@ function MaplibreMap(props: { file: PMTiles }) {
let style: any; // TODO maplibre types (not any)
if (
header.tileType === TileType.Png ||
header.tileType === TileType.Webp ||
header.tileType == TileType.Jpeg
) {
let style = await rasterStyle(props.file);