var container = document.getElementById('map'); var panorama = new google.maps.StreetViewPanorama( container, { pano: 'gileppe', pov: {heading: 47.11, pitch: -13.1}, panoProvider: function(pano) { return AVAILABLE_PANORAMAS[pano]; } }); var marker = new PanoMarker( { pano: panorama, position: {heading: 89.63, pitch: -27.22}, anchor: new google.maps.Point(20,20), size: new google.maps.Size(40,40), icon: 'info.png', title: 'Click me!' }); google.maps.event.addListener(marker, 'click', function() { alert('That\'s my bike!'); });