Commit 16885631 authored by duminil's avatar duminil
Browse files

Unneeded line for RegionChooser.

parent 23dfbe94
...@@ -108,14 +108,13 @@ function Pen(map) { ...@@ -108,14 +108,13 @@ function Pen(map) {
this.updateDot = function(marker) { this.updateDot = function(marker) {
var old_dot = this.listOfDots[marker.zIndex]; var old_dot = this.listOfDots[marker.zIndex];
old_dot.setLatLng(marker.getPosition()); old_dot.setLatLng(marker.getPosition());
this.polyline.remove();
this.polyline = new Line(this.listOfDots, this.map);
this.polyline
if (null != this.polygon) { if (null != this.polygon) {
(this.polygon.remove()); (this.polygon.remove());
this.polygon = null; this.polygon = null;
this.drawPolygon(this.listOfDots); this.drawPolygon(this.listOfDots);
} }
this.polyline.remove();
this.polyline = new Line(this.listOfDots, this.map);
this.refreshInfo(); this.refreshInfo();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment