Search code examples
google-mapsgoogle-maps-api-3positioninfowindow

Change position of the info window


I usually see the info window is opened to the top of the marker. is there any way that i can open it to bottom or side? I mean left side or right side?


Solution

  • I think you need to specify the anchorPoint property on the Marker: "The offset from the marker's position to the tip of an InfoWindow that has been opened with the marker as anchor."

    https://developers.google.com/maps/documentation/javascript/reference#MarkerOptions