Skip to content

Commit e563768

Browse files
authored
Merge pull request #113 from weareinlog/fix/limpa-regua-ao-desabilitar
Reseta o Estado da Régua ao desabilitar ela
2 parents 41239ca + e22f699 commit e563768

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inlog/inlog-maps",
3-
"version": "6.5.4",
3+
"version": "6.6.0",
44
"description": "A library for using generic layer maps ",
55
"main": "index.js",
66
"types": "dist/index.d.ts",

src/map.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,9 @@ export default class Map {
13321332
public removeRuler(): void {
13331333
this.removePolylines("inlogmaps-ruler", null);
13341334
this.rulerPolylines = [];
1335+
this.rulerClicks = [];
13351336
this.rulerLatLongs = [];
1337+
this.rulerPolylineCount = 0;
13361338

13371339
this.removeEventMap(MapEventType.Click);
13381340
this.removeOverlays("inlogmaps-ruler");

0 commit comments

Comments
 (0)