Skip to content

Commit

Permalink
Removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed May 8, 2024
1 parent c6d862f commit 9128ce7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/components/map-measurement-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9128ce7

Please sign in to comment.