Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 239
arjuncc Avatar asked Jan 14 '23 22:01

arjuncc


1 Answers

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

like image 140
duncan Avatar answered Mar 12 '23 02:03

duncan