mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user