Skip to content

Commit

Permalink
update script for the search google api
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsarik committed Nov 23, 2017
1 parent 970dff3 commit 582da75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/templates/customers/customer_section.html
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,14 @@ <h4 class="margin-bottom-30" id="aoi_selected"><b>AOI selected:</b> <span>{{ sub
var searchBox = new google.maps.places.SearchBox(input);
// map.controls[google.maps.ControlPosition.TOP_LEFT].push(input);

// console.log('INPUT: ', searchBox);
console.log('INPUT: ', map.getBounds());

// Bias the SearchBox results towards current map's viewport.
map.addListener('bounds_changed', function() {
// alert('INPUT: ');
searchBox.setBounds(map.getBounds());
if (map.getBounds()) {
searchBox.setBounds(map.getBounds());
}
});

var markers = [];
Expand Down

0 comments on commit 582da75

Please sign in to comment.