show hide imagery on google map street view using javascript

How can I show the image thumbnail on the Google map street view using javascript?

I need to show this.

When I load the map using JavaScript API, I can not see the image thumbnail, but when I click on View on Google Maps, I can see that.