title: Get polygons from google map
body: <p>I have a kml file with a bunch of polygons. I manged to create a google map and load this kml following the documentation.</p>
  
  <pre><code>(function initMap() {
          var map = new google.maps.Map(document.getElementById('map'), {
            zoom: 11,
            center: {lat: 41.876, lng: -87.624}
          });
  
          var ctaLayer = new google.maps.KmlLayer({
            url: 'http://myurl.dev/polygons.kml',
            map: map
          });
  
  })();     
  </code></pre>
  
  <p>Now, I want to retrieve all the polygons from this kml in order the ask if a point (lat,long) is within some of them.</p>
  
  <pre><code>google.maps.geometry.poly.containsLocation(point, OnePolygonFromMyMap);
  </code></pre>
  
  <p>The problem, is that I did not find any documentation to get all the shapes the map contains. Is this possible?</p>