|
@@ -6,8 +6,8 @@ import Constant from "../Constant.js";
|
|
|
export default class Line extends Geometry {
|
|
|
constructor(start, end, vectorId) {
|
|
|
super();
|
|
|
- this.start = null;
|
|
|
- this.end = null;
|
|
|
+ this.start = { x: 0, y: 0 };
|
|
|
+ this.end = { x: 0, y: 0 };
|
|
|
this.geoType = VectorType.Line;
|
|
|
this.setId(vectorId);
|
|
|
|