I am trying to create a location based search application. I need to display search results using marker. By using the Marker code sample from google map javascript API, the marker is displayed at the center of the map div. I need to point the marker at the bottom of the map so that i can show the search result above the marker.
Check this url http://www.groupon.com/now#/categories?address=denver&hint=47.5615%2C-52.7127&lat=39.7391536&lng=-104.9847034 . It shows marker to the bottom if the map. I need to disply like this.
Google map API has function to set the center point of view. If you don’t provide it centers the marker lat/long you provide. You need to add/subtract lat/long accordingly to set center position. From this I mean you should take the current lat/long of the marker in separate variables, add/subtract values to adjust centre point and set the map center point with those.
Hope this help. 🙂