Finding New York in West Side Story

How did a musical that contains virtually nothing of New York come to represent the city?