Bug in map interface when editing a polygon

Issue #4 - see github for a description