Problem with Google Street View - javascript

I have a problem with google street view. Basically, the street view should be placed in a hidden div. When you click on the div button will be displayed.

The first time the street view is loaded, but if I hide the div and then show it again, the window with the street view just shows a gray background.

You can check it out here: jsfiddle

Thanks!

+4
source share
1 answer

This will fix it.

$('#toggle').click(function() { $('#sv').toggle(); google.maps.event.trigger(sv, 'resize') }); 

jsfiddle

+5
source

All Articles