Skip to content

Commit

Permalink
Fix style object generation
Browse files Browse the repository at this point in the history
  • Loading branch information
rudokemper committed Jan 31, 2024
1 parent ab5161f commit 72e88d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/initiate.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export const initiateRendering = async (
// Generate and save a stylesheet from the online source and overlay source.
if (styleObject === null) {
styleObject = generateStyle(style, overlay, tileSize);
fs.writeFileSync(tempDir + "style.json", JSON.stringify(style, null, 2));
fs.writeFileSync(
tempDir + "style.json",
JSON.stringify(styleObject, null, 2),
);
console.log("Style file generated and saved!");
}

Expand Down

0 comments on commit 72e88d9

Please sign in to comment.