A small autonomous-cars company owned by General Motors Co. is getting into the high-definition mapping business, a move that could help the Detroit auto giant compete with Google and others in the race to develop self-driving vehicles.