Fix eslint errors
This commit is contained in:
committed by
Olivier Guyot
parent
00261dff54
commit
25a5e83910
@@ -911,9 +911,9 @@ class Draw extends PointerInteraction {
|
||||
* @api
|
||||
*/
|
||||
extend(feature) {
|
||||
const lineStringGeometry = feature.getGeometry();;
|
||||
const lineStringGeometry = feature.getGeometry();
|
||||
const extendCoordinates = lineStringGeometry.getCoordinates();
|
||||
const ending = extendCoordinates[extendCoordinates.length-1].slice();
|
||||
const ending = extendCoordinates[extendCoordinates.length - 1].slice();
|
||||
const mode = this.mode_;
|
||||
|
||||
let coordinates = [];
|
||||
@@ -928,7 +928,7 @@ class Draw extends PointerInteraction {
|
||||
// (1) Remove last coordinate, (2) extend coordinate list and (3) clone last coordinate
|
||||
coordinates.pop();
|
||||
Array.prototype.push.apply(coordinates, extendCoordinates);
|
||||
coordinates.push(ending)
|
||||
coordinates.push(ending);
|
||||
|
||||
// Update geometry and sketch line
|
||||
this.geometryFunction_(this.sketchCoords_, this.sketchFeature_.getGeometry());
|
||||
|
||||
Reference in New Issue
Block a user