implement selecting waypoint on map