Google Maps InfoBubble pixelOffset (Moving from default position above marker)

前端 未结 5 1275
情歌与酒
情歌与酒 2021-02-04 07:11

I am trying to implement a custom infoBubble that has the box opening to the side of a marker rather than the default position of on top. This has turned out to be harder than e

5条回答
  •  无人及你
    2021-02-04 07:46

    In the InfoBubble buildDom function, add:

    bubble.className = 'bubble-container';
    

    Now you have a CSS class for each InfoBubble, you can shift it using CSS margin.

提交回复
热议问题