Bind legends to map
Updates input when the edit in place closes