diff --git a/src/download_resources.js b/src/download_resources.js index 19cd5a6..d48483b 100644 --- a/src/download_resources.js +++ b/src/download_resources.js @@ -53,6 +53,7 @@ const downloadOnlineTiles = async ( bounds, minZoom, maxZoom, + outputFilename, tempDir, ) => { if (!bounds || bounds.length < 4) { @@ -213,7 +214,7 @@ const downloadOnlineTiles = async ( // Save metadata.json file with proper attribution according to // each source's terms of use const metadata = { - name: sourceName, + name: `${outputFilename} - ${sourceName}`, description: `XYZ tiles from ${sourceName}`, version: "1.0.0", attribution: sourceAttribution, @@ -273,6 +274,7 @@ export const requestOnlineTiles = ( bounds, minZoom, maxZoom, + outputFilename, tempDir, ) => { return new Promise(async (resolve, reject) => { @@ -285,6 +287,7 @@ export const requestOnlineTiles = ( bounds, minZoom, maxZoom, + outputFilename, tempDir, ); resolve(); diff --git a/src/initiate.js b/src/initiate.js index c36d92b..f8fcd8b 100644 --- a/src/initiate.js +++ b/src/initiate.js @@ -58,6 +58,7 @@ export const initiateRendering = async ( bounds, minZoom, maxZoom, + outputFilename, tempDir, ); } catch (error) {