代码之家  ›  专栏  ›  技术社区  ›  seaBass

如何更改infobubble上的锚点

  •  0
  • seaBass  · 技术社区  · 9 年前

    是否有必要改变信息泡沫的锚点?我希望信息气泡的点位于26px x 26px图标的顶部中心。

    我正在使用Maps API for JavaScript 3.0.12.0

    1 回复  |  直到 9 年前
        1
  •  1
  •   Dr.Molle    9 年前

    您可以使用css:

      /*move the bubble 26px upwards*/
    .H_ib{margin-top:-26px;}
      /*remove the ellipsis at the end of the tail when you want to*/
    .H_ib_tail svg path:first-child{display:none;}