Skip to content

Commit

Permalink
fix #2711 remove arc layer when toggling length measure tool
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed May 15, 2018
1 parent 1af43ff commit c594622
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 c594622

Please sign in to comment.