From 9128ce737526fe474c8113e779387a6cd29169f5 Mon Sep 17 00:00:00 2001 From: David Hochbaum Date: Wed, 8 May 2024 12:56:09 -0400 Subject: [PATCH] Removed commented out code --- app/components/map-measurement-tools.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/components/map-measurement-tools.js b/app/components/map-measurement-tools.js index 867417cb..30b92cdb 100644 --- a/app/components/map-measurement-tools.js +++ b/app/components/map-measurement-tools.js @@ -137,13 +137,8 @@ export default class MapMeasurementToolsComponent extends Component { this.set('draw', draw); const drawMode = type === 'line' ? 'draw_line_string' : 'draw_polygon'; const { mainMap } = this; - if (mainMap.get('drawMode')) { - // the following have been commented out, as we no longer want to clear all previous drawings unless the user hits the x button - // draw.deleteAll(); - } else { + if (!mainMap.get('drawMode')) { mainMap.mapInstance.addControl(draw); - // this.set('drawnFeature', null); - // this.set('drawnMeasurements', null); } mainMap.set('drawMode', drawMode); draw.changeMode(drawMode);