Sotera / GEQE

Geo Event Quey by Example - Leverage geo-located temporal text data in order to identify similar locations or events.
http://sotera.github.io/GEQE
The Unlicense
8 stars 7 forks source link

selecting a polygon while editing deletes data from selected polygon #31

Closed eric-kimbrel closed 9 years ago

eric-kimbrel commented 9 years ago

initial conditions: user has two polygons saved which each contain one site.

Select the first polygon, verify it is drawn on the screen. click edit While edit mode is on click the polygon drop down and select the second polygon.

Expected: Edit mode turns off and the second polygon is draw on the screen. Actual: Edit mode is turned off and the sites from the second polygon are deleted from the system.

marek5050 commented 9 years ago

For now I disabled the dropdown when in edit mode. There's a race condition that's happening between the disable edit and load new polygon set. I'll have to think it through a little more.

eric-kimbrel commented 9 years ago

Disabling the drop down is perfectly good solution as long as its clear that its greyed out so a user understands its disabled and not just broken.

Another solution could just be to add a function to turn off edit mode whenever the drop down is clicked.

eric-kimbrel commented 9 years ago

I'm happy with this solution, closing the issue