Creating a Street View panorama is as easy as:
panorama = GMaps.createPanorama({ el: '#panorama', lat : 42.3455, lng : -71.0983 });
You must define container ID, latitude and longitude of the panorama's position.
NoteYou also can define a pov (heading, pitch and zoom) and others values defined in the official documentation.
Note In the same way, you can define events, like in the Map events example. The events allowed are defined in the official documentation ("Events" section).