Reputation: 12401
I am having a problem with google street view. Basically, the street view is to be placed inside a hidden div. The div will be revealed when clicking on a button.
The street view loads fine the first time, but if I hide the div and then show it again, the street view window just shows a gray background.
You can check it out here: jsfiddle
Thanks!
Upvotes: 4
Views: 1214
Reputation: 1297
This will fix it
$('#toggle').click(function() {
$('#sv').toggle();
google.maps.event.trigger(sv, 'resize')
});
Upvotes: 5