Added an interactive create polygon functionality