Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/download_resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const downloadOnlineTiles = async (
bounds,
minZoom,
maxZoom,
outputFilename,
tempDir,
) => {
if (!bounds || bounds.length < 4) {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -273,6 +274,7 @@ export const requestOnlineTiles = (
bounds,
minZoom,
maxZoom,
outputFilename,
tempDir,
) => {
return new Promise(async (resolve, reject) => {
Expand All @@ -285,6 +287,7 @@ export const requestOnlineTiles = (
bounds,
minZoom,
maxZoom,
outputFilename,
tempDir,
);
resolve();
Expand Down
1 change: 1 addition & 0 deletions src/initiate.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const initiateRendering = async (
bounds,
minZoom,
maxZoom,
outputFilename,
tempDir,
);
} catch (error) {
Expand Down