Skip to content

Commit

Permalink
fixed bearing tool with openlayers
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Mar 16, 2017
1 parent cd1c9db commit 2878067
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ const MeasurementSupport = React.createClass({
bearing = CoordinatesUtils.calculateAzimuth(sketchCoords[0], sketchCoords[1], this.props.projection);
if (sketchCoords.length > 2) {
this.drawInteraction.sketchCoords_ = [sketchCoords[0], sketchCoords[1], sketchCoords[0]];
this.sketchFeature.getGeometry().setCoordinates(this.drawInteraction.sketchCoords_);
this.drawInteraction.finishDrawing();
}
}
Expand Down

0 comments on commit 2878067

Please sign in to comment.