The post says I created it yesterday, but I am certain I created it the day before. I have yet to get a response. Please, while I appreciate not being spoon fed the answer right off the bat, try, also, not to speak in riddle. Thanks!
In my app I am using an if/else statement that, onMapLongClick, will update the location of the marker, if one exists, or create a marker if one does not exist. I wanted to use SearchView with Google Places API, so I utilized a tutorial I found reading through posts on Stack Overflow. It utilizes search results from Google Places API to create a marker. Nice! However, it is using its own addMarker. So, I am hoping someone would be so kind as to get me going in the right direction so that I am able to tie the results being generated from Google Places API in with my method for adding a marker. (Teach the man to fish, not give the man a fish.)
Tutorial method for Google-Places-API results:
Ulf Dittmer wrote:I'm not clear on what the problem is. What happens at runtime? Which of this code is or is not being run, and how does that differ from your expectation of what would happen? Also, what does "it is using its own addMarker" mean?
The code runs 100% fine. However, I want the method I wrote for adding a marker to be the only method for adding a marker. So, instead of the selected search result being added to the map via the addMarker in the tutorial code, I want it to be added via my method- the one I have coded for the map. Does that make sense?