Skip to content

Commit

Permalink
TILES-6118 loopWorld off (#33)
Browse files Browse the repository at this point in the history
* loop off

* add ignore

* fix prettier

* fix

---------

Co-authored-by: Andrey Kuznecov <[email protected]>
  • Loading branch information
Kuznecoff and Andrey Kuznecov authored Mar 29, 2024
1 parent 586e3d9 commit 115991b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ruler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export class Ruler extends Evented<RulerEventTable> {
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 = {
Expand Down

0 comments on commit 115991b

Please sign in to comment.