Skip to content

Commit

Permalink
Added spaces to generated JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
chunkangwong committed Apr 18, 2023
1 parent 1f8bf51 commit 833e955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ view.whenLayerView(mapImageLayer).then(async () => {

const a = document.createElement("a");
a.href = `data:text/json;charset=utf-8,${encodeURIComponent(
JSON.stringify(popupTemplate)
JSON.stringify(popupTemplate, null, 4)
)}`;
a.download = "popupTemplate.json";
a.click();
Expand Down

0 comments on commit 833e955

Please sign in to comment.