I donโt think itโs possible, Google Earth Api (today) does not provide any methods for controlling the street view mode that enables / disables. All movements are carried out through user input, not program control.
However, it can just be mixed by simulating keystrokes using something like jQuery.
Is it possible to programmatically simulate keypress events?
source share