How to display a StreetView panorama inside an InfoWindow

1,688 views
Skip to first unread message

Marc Ridey

unread,
Nov 5, 2010, 7:39:52 AM11/5/10
to google-map...@googlegroups.com
I've seen a number of questions relating to displaying StreetView in an infowindow.
Here's a small demo. Hope it helps.



Marc Ridey

unread,
Nov 8, 2010, 6:56:47 AM11/8/10
to google-map...@googlegroups.com

geoco...@gmail.com

unread,
Nov 8, 2010, 8:07:16 AM11/8/10
to Google Maps JavaScript API v3
Are there supposed to be links? If so, they didn't make it to the
groups interface:
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/51421fc29027dcb9/c1d6a86e90564915#c1d6a86e90564915

-- Larry

Marc Ridey

unread,
Nov 8, 2010, 8:15:50 AM11/8/10
to google-map...@googlegroups.com

geoco...@gmail.com

unread,
Nov 8, 2010, 8:58:00 AM11/8/10
to Google Maps JavaScript API v3
On Nov 8, 5:15 am, Marc Ridey <mri...@google.com> wrote:
> Sorry, they are links in the forum.

What forum?

-- Larry

> Not sure what happened with groups.
> Here's the links:
>
> http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-marker...
>
> http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-marker...
>
> http://blog.mridey.com/2010/11/using-streetviewservice-in-maps-api.html

CSharp

unread,
Nov 8, 2010, 11:41:59 AM11/8/10
to google-map...@googlegroups.com
This is awesome, Marc.  I had wished someone would have posted this back in June or July when I was trying to find out how to do StreetView.  Nonetheless, there will be some code that I can still use to resolve the streetview check when a location does not have the panorama view.
 
I do have one question, though.  I noticed that on some sites (I think these were using the Javascript API v2.x) that use panorama streetview that have the full screen mode.  I checked the v3 API reference to see if the pano view contains some sort of mechanism to allow the user to click on to view the StreetView in a full screen mode, but I don't think v3 has that capability or else it is undocumented.  Would you be able to show how that is done if it is possible?  It's probably some option that you can initialize the pano streetview with so that the clickable icon appears.

Marc Ridey

unread,
Nov 8, 2010, 3:55:40 PM11/8/10
to google-map...@googlegroups.com
When you go to the main Maps API Javascript site, http://code.google.com/intl/en/apis/maps/documentation/javascript/, there is a link in the top right to access the forum http://code.google.com/intl/en/apis/maps/documentation/javascript/forum.html

Marc

Marc Ridey

unread,
Nov 8, 2010, 3:59:42 PM11/8/10
to google-map...@googlegroups.com
Sorry the v2 version used Flash that allowed the browser to extend beyond the bounds of its window and take over the desktop. With the new v3 version purely HTML based, the content is bound by what the browser can do.

You can 'simulate' full screen by having a DIV on your site , inserted directly into the body, absolutely positioned at 0,0 and with the width and height of the window. Then load StreetViewPanorama into it. This will allow you to display the panorama across the full browser window, but not beyond.

Marc
Reply all
Reply to author
Forward
0 new messages