title: How to check if Google Street View available and display message?
body: <p>I am passing lat and lng variables and display google sreet view in a div. The problem is that when the StreetView is unavilable then nothing is displayed. I would like to check if there is a streetview for a given lat and lng and display a message. Here is my code:</p>
  
  <pre><code>var myPano = new GStreetviewPanorama(document.getElementById("street2"), panoOpts);
  var location = new GLatLng(lat,lng)
  myPano.setLocationAndPOV(location);
  </code></pre>
  
  <p>Maybe I should use something like:  <code>Event.addListener(myPano, "error", errorMessage());</code></p>
  
  <p>Any ideas?</p>