Sfomuseum/main (#624)

* Update js/src/adapters.ts to dispatch empty image if source.getZxy returns an empty array (no raster data); run npm audit fix

* js: simplify leaflet missing tile case [#620]

---------

Co-authored-by: thisisaaronland <thisisaaronland@localhost>
This commit is contained in:
Brandon Liu
2025-12-24 16:30:38 +08:00
committed by GitHub
parent fb6edcd31d
commit a5f8a89256
3 changed files with 37 additions and 26 deletions

View File

@@ -56,9 +56,9 @@ export const leafletRasterLayer = (source: PMTiles, options: unknown) => {
const blob = new Blob([arr.data], { type: mimeType });
const imageUrl = window.URL.createObjectURL(blob);
el.src = imageUrl;
el.cancel = undefined;
done(undefined, el);
}
el.cancel = undefined;
done(undefined, el);
})
.catch((e) => {
if (e.name !== "AbortError") {