Utility class to draw a rectangle on the map and return the coordinates through the doAction function. All classes should redifine the doAction function