【问题标题】:JVectorMap tooltip, labelJVectorMap 工具提示,标签
【发布时间】:2013-12-04 14:42:06
【问题描述】:

有人知道如何在 JVectorMap http://jvectormap.com/ 中设置工具提示/标签的样式吗?我不能用萤火虫检查它。我需要添加 z-index,因为它出现在地图下方。还有一种方法可以让标记工具提示始终显示而不是仅在悬停时显示? 谢谢,

【问题讨论】:

标签: jquery css jvectormap


【解决方案1】:

看这里jVectorMap label is not visible, why?

onLabelShow: function(event, label, code) {
    if (code == 'it') {
        event.preventDefault();
    } else if (code == 'it') {
        label.text('bla bla bal');
    }
}

【讨论】:

    【解决方案2】:

    对于工具提示,以更简洁的方式(ReactJS):

    onRegionTipShow={(e, el, code) => {
        el.css("z-index", 99);
    }}
    

    【讨论】:

      猜你喜欢
      • 2014-08-22
      • 2011-01-13
      • 2012-10-07
      • 2011-04-09
      • 2011-09-30
      • 2015-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多