27. August 2010 00:13
Since I couldn’t find an existing Google Maps Streetview GControl, I decided to roll my own. This GControl will put a streetview button next to the default maptype buttons. Clicking it will show a “streetview guy” marker which you can drag around your map. Click the guy to open an infowindow showing the street view!
After adding the maps.streetviewcontrol.js to your page, all you have to do to add it to your map is:
Check out a working example here. Feel free to modify it to fit your needs.
StreetViewControl can be downloaded below;
maps.streetviewcontrol.zip (3.84 kb)