mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
Allow for PMTiles with WebP raster tiles
This commit is contained in:
@@ -287,6 +287,7 @@ function MaplibreMap(props: { file: PMTiles }) {
|
|||||||
let style: any; // TODO maplibre types (not any)
|
let style: any; // TODO maplibre types (not any)
|
||||||
if (
|
if (
|
||||||
header.tileType === TileType.Png ||
|
header.tileType === TileType.Png ||
|
||||||
|
header.tileType === TileType.Webp ||
|
||||||
header.tileType == TileType.Jpeg
|
header.tileType == TileType.Jpeg
|
||||||
) {
|
) {
|
||||||
let style = await rasterStyle(props.file);
|
let style = await rasterStyle(props.file);
|
||||||
|
|||||||
Reference in New Issue
Block a user