I am trying to create a web application using mapbox-gl with react. My goal is to have users draw multiple shapes and be able to edit them when desired. However, using map boxes default, a user can edit/move any draw feature inside a Draw componenet. I want the users to be able to edit one shape at a time.
So, in other words if I have shapes 'A' and 'B', I want the user to only be able to edit shape 'A' when they press the "Edit A" button–while not being able to touch shape 'B.'
A solution that may work is if I add individual "Draw" compenents for each shape; however, that seems very inefficient.