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

前端 未结 5 1278
情歌与酒
情歌与酒 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:45

    Unfortunately there is no such option as pixelOffset in InfoBubble. But if you just want to move up Bubble above the marker in your example you should not set map parameter at bubble initialization. Consider the following fiddle (i fixed it for you):

    http://jsfiddle.net/ssrP9/5/


    P.S. Your fiddle didn't work because you hadnt added resources properly http://doc.jsfiddle.net/basic/introduction.html#add-resources

提交回复
热议问题