From cb0c49bb3ed96a0680b09bce19fd85def9302cb7 Mon Sep 17 00:00:00 2001 From: Ian Jones Date: Fri, 6 Sep 2024 11:15:57 +0100 Subject: [PATCH] style: Reset icon direction reverse --- src/components/my-map/controls.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/my-map/controls.ts b/src/components/my-map/controls.ts index f99d706..5c1011b 100644 --- a/src/components/my-map/controls.ts +++ b/src/components/my-map/controls.ts @@ -38,7 +38,7 @@ export function resetControl(listener: any, icon: string) { button.title = "Reset map view"; if (icon === "unicode") { - button.innerHTML = "↻"; + button.innerHTML = "↺"; } else { const image = document.createElement("img"); image.className = "reset-icon"; @@ -140,7 +140,7 @@ export class PrintControl extends PrintDialog { ?.getControls() .getArray() .filter( - (control: Control) => control instanceof ScaleLine + (control: Control) => control instanceof ScaleLine, )[0] as ScaleLine; if (!scaleLineControl) return; // @ts-ignore @@ -176,10 +176,10 @@ export class PrintControl extends PrintDialog { ?.getControls() .getArray() .filter( - (control) => control instanceof CanvasScaleLine + (control) => control instanceof CanvasScaleLine, )[0] as CanvasScaleLine; const canvasScaleLine = document.querySelector( - ".ol-scale-line-inner" + ".ol-scale-line-inner", ) as HTMLDivElement; const scale = Math.round(scaleLineControl.getScaleForResolution()); if (canvasScaleLine) {