aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/functionality/sheet-map/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/functionality/sheet-map/index.ts')
-rw-r--r--src/scripts/functionality/sheet-map/index.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scripts/functionality/sheet-map/index.ts b/src/scripts/functionality/sheet-map/index.ts
index 3d566c2..a4d7544 100644
--- a/src/scripts/functionality/sheet-map/index.ts
+++ b/src/scripts/functionality/sheet-map/index.ts
@@ -69,7 +69,7 @@ const downloadPDF = (labelPoints: boolean = true) => {
.innerHTML
.split("[")[1]
.trim();
- return detail.substr(0, detail.length - 1);
+ return detail.substring(0, detail.length - 1);
};
generateWebPage(
getDownloadMapPDFPageContent({
@@ -143,9 +143,8 @@ setPlotInformation();
setPlotInformation(plotPolygon);
});
- await new Promise<void>((resolve, reject) => {
+ await new Promise<void>((resolve, _reject) => {
const plotElementIdsControl = setInterval(() => {
- let i = 0;
let plotElements = document.querySelector("#OpenLayers_Layer_Vector_25_vroot")?.children || [];
if (plotElements.length) {
clearInterval(plotElementIdsControl);