mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-03-22 06:49:37 +00:00
@@ -56,6 +56,8 @@ export const leafletRasterLayer = (source: PMTiles, options: unknown) => {
|
||||
const blob = new Blob([arr.data], { type: mimeType });
|
||||
const imageUrl = window.URL.createObjectURL(blob);
|
||||
el.src = imageUrl;
|
||||
} else {
|
||||
el.style.display = "none";
|
||||
}
|
||||
el.cancel = undefined;
|
||||
done(undefined, el);
|
||||
|
||||
Reference in New Issue
Block a user