From 115991b152b1ca5ccff7f7423f497233081f61e3 Mon Sep 17 00:00:00 2001 From: Andrey Kuznetsov Date: Fri, 29 Mar 2024 15:01:42 +0700 Subject: [PATCH] TILES-6118 loopWorld off (#33) * loop off * add ignore * fix prettier * fix --------- Co-authored-by: Andrey Kuznecov --- src/ruler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ruler.ts b/src/ruler.ts index b821ff0..77dde16 100644 --- a/src/ruler.ts +++ b/src/ruler.ts @@ -115,6 +115,8 @@ export class Ruler extends Evented { constructor(map: mapgl.Map, options: RulerOptions = {}) { super(); this.map = map; + // @ts-ignore: Type 'loopWorld' option is in feature + this.map.setOption('loopWorld', false); this.mode = options.mode ?? DEFAULT_RULER_MODE; this.language = this.map.getLanguage(); this.redrawFlags = {