Skip to content

Commit

Permalink
change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access committed Apr 22, 2024
1 parent 7505d5d commit 2595572
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 6 additions & 7 deletions packages/geo/src/lib/print/shared/print.service.ts
Expand Up @@ -147,7 +147,7 @@ export class PrintService {
this.addComment(doc, options.comment, baseMargins, verticalSpacing);
}

this.addAttProjScale(
this.handleFooter(
map,
doc,
options,
Expand Down Expand Up @@ -489,7 +489,7 @@ export class PrintService {
* @param baseMargins - top | right | bottom | left
* @param verticalSpacing - calculate text position and map height
*/
private async addAttProjScale(
private async handleFooter(
map: IgoMap,
doc: jsPDF,
options: PrintOptions,
Expand Down Expand Up @@ -529,12 +529,12 @@ export class PrintService {
}

getAttributionText(map: IgoMap): string {
const mapOverlayHTML = map.ol.getOverlayContainerStopEvent() as HTMLElement;
const HTMLattribution = mapOverlayHTML
const mapOverlayHtml = map.ol.getOverlayContainerStopEvent() as HTMLElement;
const htmlAttribution = mapOverlayHtml
.getElementsByClassName('ol-attribution')[0]
.cloneNode(true) as HTMLElement;
HTMLattribution.getElementsByTagName('button')[0].remove();
return HTMLattribution.innerText;
htmlAttribution.getElementsByTagName('button')[0].remove();
return htmlAttribution.innerText;
}

private getProjScale(
Expand Down Expand Up @@ -938,7 +938,6 @@ export class PrintService {
if (className && typeof className === 'string') {
return className.includes('ol-attribution');
}
return false;
}
});

Expand Down
Expand Up @@ -123,8 +123,6 @@ export class AdvancedCoordinatesComponent implements OnInit, OnDestroy {
def: undefined,
extent: undefined
};
console.log('defaultProj; ', this.defaultProj);
// ici ...
this.center = this.storageService.get('centerToggle') as boolean;
this.computeProjections();
this.buildForm();
Expand Down

0 comments on commit 2595572

Please sign in to comment.