It is very easy to accidentally delete the data from a polyset by clicking the edit button when the screen is cleared. This is particularly easy to do if you are used to using the old UI where you would click to the pencil icon to draw the selected polygon. If I forgot about the change to the UI and use the system the old way I delete things by mistake. I believe the code works as intended, but I am calling this a bug from the usability standpoint.
suggested fix:
when the edit button is clicked the currently selected polygon should be drawn on the screen if not already drawn.
steps to reproduce:
save a new poly set, and add a site to it (draw a square)
with the polyset selected and on the screen click the * symbol at the upper right hand side of the control panel to clear the map
click the edit button to turn on edit mode
click the edit button again to turn off edit mode
expected: you didn't change the polygon, so it should be unchanged in the system
actual: the polyset still exists, but the square (site) you added has been deleted from it.
Additionally, the tooltip for the edit button still says " Draw polygon to the map" which is incorrect and also needs fixed to match current functionality.
It is very easy to accidentally delete the data from a polyset by clicking the edit button when the screen is cleared. This is particularly easy to do if you are used to using the old UI where you would click to the pencil icon to draw the selected polygon. If I forgot about the change to the UI and use the system the old way I delete things by mistake. I believe the code works as intended, but I am calling this a bug from the usability standpoint.
suggested fix:
when the edit button is clicked the currently selected polygon should be drawn on the screen if not already drawn.
steps to reproduce:
expected: you didn't change the polygon, so it should be unchanged in the system actual: the polyset still exists, but the square (site) you added has been deleted from it.