title: Google maps check if current bounds are inside the bounds of a data layer
body: <p>I am loading a data layer in a google map, over a certain country (it's a drawing over a country):</p>
  
  <pre><code>map.data.addGeoJson(geoJsonObject);
  </code></pre>
  
  <p>I am pretty sure there isn't, but... i<strong>s there a way to check that the bounds of the map are inside the bounds of the data layer</strong>?</p>
  
  <p>(basically, I want to know, when the user navigates on the map, if the current viewport is inside data layer);</p>
  
  <pre><code>var bounds = this.map.getBounds();
  var sw = bounds.getSouthWest();
  </code></pre>
  
  <p>Maybe I can query the data layer in the position of the south west bound and check for some props. indicating that I am inside that data layer?</p>
  
  <p><strong>Or at least:</strong></p>
  
  <p>Does anyone know a way how to get a certain feature object programmatically, knowing the lat and long?</p>
  
  <p>Here the google maps uses events to get to the feature object:</p>
  
  <pre><code> map.data.addListener('click', function(event) {
      event.feature.setProperty('isColorful', true);
    });
  </code></pre>
  
  <p>But I do not want to use events. <strong>Is there a method to supply the coordinates of a point and get to the feature object?</strong>
  Something like:</p>
  
  <pre><code>map.getFeature(lat, long).setProperty('isColorful', true);
  </code></pre>