From 5b413d686d1f9c8bdce6b06c6f15aff3f67ded0d Mon Sep 17 00:00:00 2001 From: Andrey Kuznecov Date: Wed, 27 Mar 2024 06:32:37 +0700 Subject: [PATCH] loop off --- package-lock.json | 2 +- package.json | 2 +- src/ruler.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c08bf81..6cddc61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@2gis/mapgl-ruler", - "version": "2.0.7", + "version": "2.0.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index dd1bee4..f40bcc1 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/ruler.ts b/src/ruler.ts index b821ff0..31f43e5 100644 --- a/src/ruler.ts +++ b/src/ruler.ts @@ -115,6 +115,7 @@ export class Ruler extends Evented { 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 = {