Change the position of the info window

Usually I see that the info window opens at the top of the marker. Is there a way that I can open it to the bottom or side? I mean the left or right side?

+4
source share
2 answers

I think you need to specify the anchorPoint property on the marker: "The offset from the marker position to the InfoWindow vertex that the marker opened as a binding."

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

+7
source

screenshot How the information window opens, as you probably refer to this ... google map window play from css: absolute; try changing these values โ€‹โ€‹of the top and left coordinates and see how it moves with the shadow.

+2
source

Source: https://habr.com/ru/post/1447892/


All Articles