sync up the polygon when attaching the map back into the main app