Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Maps V3 StreetView not displaying on second setVisible() call
    primarykey
    data
    text
    <p><strong>EDIT:</strong> Heard back from Google, they've confirmed this is an issue on their end.</p> <p><strong>EDIT2:</strong> my contact at Google has informed me they've fixed this bug.</p> <p>I've got a troublesome bug using the Google Maps V3 API.</p> <p>If you set up a map, switch to streetview, close streetview, then reopen, the imagery appears blank (though the controls still display). If you click on the controls to move the camera, the imagery returns.</p> <p>What causes this? As you can see the code below is very simple, I can't think where I've gone wrong.</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" &gt; &lt;head&gt; &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="map" style="width:500px;height:300px"&gt;&lt;/div&gt; &lt;script type="text/javascript"&gt; var map = new google.maps.Map(document.getElementById('map'), { center: new google.maps.LatLng(37.767063, -122.445724), mapTypeId: google.maps.MapTypeId.ROADMAP, zoom: 15 }); var streetView = map.getStreetView(); streetView.setPosition(map.getCenter()); setTimeout(function() { streetView.setVisible(true); }, 1500); setTimeout(function() { streetView.setVisible(false); }, 3000); setTimeout(function() { streetView.setVisible(true); }, 4500); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload