I’m developing a simple map query app that allows a user to input an address (or select from a dropdown) in order to get some simple statistics about real estate in the zip code where that address is. The map itself is powered by Google Places.
The workflow is fairly simple, and the map search works well when the user directly inputs an address. However, I have one challenge that is stumping me.
What I would like to do is have the map initially load the user’s current address:
So that by default, the user sees information for their current location.
When I run my app, the search bar does populate the current address (within a few houses, which is fine). However, no map marker is placed by default and the map instead loads the default location of New York City:
If I were to then search for an address, the map works as desired.
Any thoughts as to what I’m doing wrong?



