title: Change Image Date of Google Street View API
body: <p>I am trying to find a way to load the Google Maps Street View for a specific time period by accessing the image date. On google maps it lets you go back as far as 2007. How can I make google load the map from another year instead of the current year?</p>
  
  <p>Here's what I have but it's only loading the current map.</p>
  
  <h3>HTML</h3>
  
  <pre><code>&lt;body&gt;
     &lt;div id="streetview2011" class="street-view"&gt;&lt;/div&gt;
  
     &lt;script src="../js/lib/street-view.js"&gt;&lt;/script&gt;
     &lt;script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDP87Ddl6sW6C-CXeoHlRxszGBfo1mlMT8&amp;callback=initPano" async defer&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <h3>Javascript</h3>
  
  <pre><code>function initPano() {
  
    var panorama2011 = new google.maps.StreetViewPanorama(
        document.getElementById('streetview2011'), {
          position: {lat: 39.963325, lng: -75.202340},
          imageDate: '2011-07',
          addressControlOptions: {
            position: google.maps.ControlPosition.BOTTOM_CENTER
          },
          imageDateControl: true,
          linksControl: false,
          panControl: false,
          enableCloseButton: false
    });
  
  }
  </code></pre>