From c5946227bf31952d3f327dab41336585ac6ab468 Mon Sep 17 00:00:00 2001 From: Matteo Velludini Date: Tue, 15 May 2018 10:35:27 +0200 Subject: [PATCH] fix #2711 remove arc layer when toggling length measure tool --- web/client/components/map/leaflet/MeasurementSupport.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/client/components/map/leaflet/MeasurementSupport.jsx b/web/client/components/map/leaflet/MeasurementSupport.jsx index 942a0edf45..d0ae4c7df4 100644 --- a/web/client/components/map/leaflet/MeasurementSupport.jsx +++ b/web/client/components/map/leaflet/MeasurementSupport.jsx @@ -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);