Skip to content

Commit

Permalink
Handling all deletion events
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoleiftekhar committed Aug 15, 2024
1 parent ae47410 commit 202aa28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/conversion/places-preview-map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ const PlacesPreviewMap = ({ style, unitsChanged, levelsChanged, footprintChanged

var layers = drawingManager.getLayers();
map.events.add('mousedown', layers.polygonLayer, handleDeletion);
map.events.add('touchstart', layers.polygonLayer, handleDeletion);
map.events.add('click', layers.polygonLayer, handleDeletion);
});

// Recognizes which layer button is clicked and sets features data to display accordingly
Expand Down

0 comments on commit 202aa28

Please sign in to comment.