title: Getting the properties of a GeoJSON data layer in Google Maps V3
body: <p>When loading a geoJSON file into a Google Map as a data layer, how does one access the properties of the data layer itself?</p>
  
  <p>I know how to <a href="https://developers.google.com/maps/documentation/javascript/examples/layer-data-dynamic" rel="noreferrer">access the individual properties</a>, like <code>posts_here</code> in the below example. What I'm looking to get is the properties for the layer itself- in this example, <code>maxPosts</code>.</p>
  
  <pre><code>$.getJSON("http://example.com/posts/grid.json" + location.search, function (data) {
          grid = map_canvas.data.addGeoJson(data);
          map_canvas.data.setStyle(function(feature) {
          return /** @type {google.maps.Data.StyleOptions} */({
              strokeWeight: Math.log(feature.getProperty('posts_here')),
          });
      })
  });
  </code></pre>
  
  <p>Example of the <code>grid.json</code> I'm loading:</p>
  
  <pre><code>{
      "type": "FeatureCollection",
      "features": [
          {
              "type": "Feature",
              "geometry": {
                  "type": "Polygon",
                  "coordinates": [
                      [
                          [-58,-35],
                          [-58,-34],
                          [-57,-34],
                          [-57,-35],
                          [-58,-35]
                      ]
                  ]
              },
              "properties": {
                  "posts_here": "177"
              }
          }
      ],
      "properties": {
          "maxPosts": "177"
      }
  }
  </code></pre>