Skip to content

Commit

Permalink
fix #2711 remove arc layer when toggling length measure tool (#2902)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored and offtherailz committed May 16, 2018
1 parent 5688de1 commit 86e5701
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/client/components/map/leaflet/MeasurementSupport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ class MeasurementSupport extends React.Component {
this.drawControl.disable();
this.drawControl = null;
this.removeLastLayer();
this.removeArcLayer();
this.props.map.off('draw:created', this.onDrawCreated, this);
this.props.map.off('draw:drawstart', this.onDrawStart, this);
this.props.map.off('draw:drawvertex', this.onDrawVertex, this);
Expand Down

0 comments on commit 86e5701

Please sign in to comment.