scottpunshon / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Use infobubble in panorama view. #272

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I got a report today that my map app has difficulties showing up the infobubble 
when the user is in panorma view. 

Upon execution I found out that whenever we are in panorama view, the 
map.getDiv method actually doesn't exist in the map object. This creates a js 
error and the code doesn't go further. Upon examing the panorama object I found 
out that we have a getcontainer method that returns the div the map is in. 

so if we change:
var mapDiv = map.getDiv();
to 
var mapDiv = ('getDiv' in map) ? map.getDiv() : map.getContainer();
then we can use the infoBubble in a panorama view. 

We need to do this change in panToview and in figureOutSize.

Original issue reported on code.google.com by danielsd...@yahoo.fr on 5 Sep 2013 at 1:55

GoogleCodeExporter commented 9 years ago
Thanks, I'll take a peak.

Original comment by brett.mc...@gmail.com on 10 Sep 2013 at 5:36

GoogleCodeExporter commented 9 years ago
Can you post a code sample or provide a link to an example?

Original comment by brett.mc...@gmail.com on 12 Sep 2013 at 5:38