title: Load Google Maps API in jsdom
body: <p>I am trying to load the Google Maps API in jsdom. More specifically I am interested in getting the data from the getPanorama callback function. However, when I execute the following code I see 'Executed with no error', but I don't see any of the messages 'status ok' or 'status not ok'.</p>
  
  <pre><code>var jsdom = require("jsdom");
  var cafe = {lat: 51.47803167, lng: 0.141212256};
  
  jsdom.env({
    html: "&lt;html&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;",
    scripts: ["https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"],
    done: function (err, window) {
      if (err) {
        console.log('Error is' + err);
      } else {
        // console.log(window.google);
        var google = window.google;
        var sv = new google.maps.StreetViewService();
        sv.getPanorama({location: cafe}, function(data, status) {
          if (status === 'OK') {
            console.log('status ok');
            console.log(data);
          } else {
            console.log('status not ok');
          }
        });
        console.log('Executed with no error');
  
      }
    }
  });
  </code></pre>
  
  <p>I also tried modifying the code and using jsdom.jsdom instead of env, but nothing worked. Any ideas about how can I retrieve the data from the callback in my node code?</p>