diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-07-30 21:28:24 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-07-30 21:28:24 +0530 |
| commit | caa9c3f705730886cab911cb241703a10494581c (patch) | |
| tree | 624ab13c6d370cc999c1ff4b896faf72b6853827 /src/scripts/functionality/sheet-map/index.ts | |
| parent | 60fa822ab38b6d8d2db7c553c779043858c30eb2 (diff) | |
| download | banglar-bhumi-utils-caa9c3f705730886cab911cb241703a10494581c.tar.gz banglar-bhumi-utils-caa9c3f705730886cab911cb241703a10494581c.zip | |
Added plot map details on top of pdf page.
Diffstat (limited to 'src/scripts/functionality/sheet-map/index.ts')
| -rw-r--r-- | src/scripts/functionality/sheet-map/index.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/scripts/functionality/sheet-map/index.ts b/src/scripts/functionality/sheet-map/index.ts index c3ad13f..71228fe 100644 --- a/src/scripts/functionality/sheet-map/index.ts +++ b/src/scripts/functionality/sheet-map/index.ts @@ -44,8 +44,18 @@ const setPlotInformation = (plotPolygon: PlotPolygon | null | undefined = null) }; const downloadPDF = (labelPoints: boolean = true) => { + const _getMapDetail = (i: number) => { + const detail = document.querySelector(`#headerTable > tbody > tr > td:nth-child(${i})`)! + .innerHTML + .split("[")[1] + .trim(); + return detail.substr(0, detail.length - 1); + }; generateWebPage( getDownloadMapPDFPageContent({ + district: _getMapDetail(1), + block: _getMapDetail(2), + mouza: _getMapDetail(3), mapContent: plotPolygonPathElements + (labelPoints ? plotNumberLabelTextElements : "") }), "map" |
