title: google maps autocomplete bounds not working
body: <p>I want to use autocomplete bounds on Google maps service. But not working.</p>
  
  <pre><code>//----autocomplete start
  var input = (document.getElementById('searchPlace'));
  var defaultBounds = new google.maps.LatLngBounds(
              new google.maps.LatLng(40.518, 29.215),
              new google.maps.LatLng(41.242, 30.370));
  
  var options = {
              bounds:defaultBounds,
              componentRestrictions: { country: 'XX'},};
  
  var autocomplete = new google.maps.places.Autocomplete(input, options);
  //----autocomplete end
  </code></pre>
  
  <p>When I type the textbox, the addresses are coming in XX country. But I wanna restrict the search in a region of country. For example a city bounds. But other addresses are coming out of this bounds. Bounds are not considered.</p>