You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across an issue in the Autocomplete portion of the course. I was running my autocomplete code to display pizza restaurants and noticed that when I typed in 'pizza', it would zoom the map all the way out to show North America continent and show international listings instead of inside NYC area. It worked fine if I typed in 'pizza NYC' though. At first I thought I had made a mistake in my code, so I copied over the code sample from github repo. Same thing happened again with the code from github.
It's my understanding that in the code, when you call searchBox.setBounds(map.getBounds()) in the code, it would display searchBox results to be within NYC area, not internationally.
The text was updated successfully, but these errors were encountered:
I came across an issue in the Autocomplete portion of the course. I was running my autocomplete code to display pizza restaurants and noticed that when I typed in 'pizza', it would zoom the map all the way out to show North America continent and show international listings instead of inside NYC area. It worked fine if I typed in 'pizza NYC' though. At first I thought I had made a mistake in my code, so I copied over the code sample from github repo. Same thing happened again with the code from github.
It's my understanding that in the code, when you call
searchBox.setBounds(map.getBounds())
in the code, it would display searchBox results to be within NYC area, not internationally.The text was updated successfully, but these errors were encountered: