Streetview InfoWindow GControl for Google Maps API V2

by Marcel Wijnands 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:

map.addControl(new StreetViewControl);

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)

Tags:

Google Maps | JavaScript

Comments

8/29/2010 7:12:13 PM #

Marcel Wijnands

Closing comments due to spam. You can use the contact form!

Marcel Wijnands Netherlands

Comments are closed

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen | Modified by Mooglegiant