diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2021-01-28 17:52:36 +0530 |
---|---|---|
committer | Dennis Francis <dennisfrancis.in@gmail.com> | 2021-02-08 14:32:57 +0530 |
commit | b27ae65b39006bc6a8ea65836168b2885fa0ed96 (patch) | |
tree | 26dd639d08152b26229b025786965ade9ebd378e | |
parent | Introduce CPolyline.ts based on L.Polyline (diff) | |
download | online-b27ae65b39006bc6a8ea65836168b2885fa0ed96.tar.gz online-b27ae65b39006bc6a8ea65836168b2885fa0ed96.zip |
redraw on construction
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia0c6b0c8db22ec7b53d5acc16cb53a5cd99a7780
-rw-r--r-- | loleaflet/src/layer/vector/CPolyline.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/loleaflet/src/layer/vector/CPolyline.ts b/loleaflet/src/layer/vector/CPolyline.ts index e8d9db9e64..140736b60c 100644 --- a/loleaflet/src/layer/vector/CPolyline.ts +++ b/loleaflet/src/layer/vector/CPolyline.ts @@ -58,8 +58,7 @@ class CPolyline extends CPath { constructor(pointSet: CPointSet, options: any) { super(options); this.smoothFactor = options.smoothFactor !== undefined ? options.smoothFactor : this.smoothFactor; - this.pointSet = pointSet; - this.updateBounds(); + this.setPointSet(pointSet); } getPointSet(): CPointSet { |