Skip to content

Commit

Permalink
loop off
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kuznecov committed Mar 26, 2024
1 parent 586e3d9 commit 5b413d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@2gis/mapgl-ruler",
"version": "2.0.7",
"version": "2.0.8",
"description": "",
"license": "BSD-2-Clause",
"main": "dist/ruler.js",
Expand Down
1 change: 1 addition & 0 deletions src/ruler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class Ruler extends Evented<RulerEventTable> {
constructor(map: mapgl.Map, options: RulerOptions = {}) {
super();
this.map = map;
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 5b413d6

Please sign in to comment.