jquery - highmap 数据点点击事件在移动设备(触摸屏)上缩放后中断

标签 jquery css html highmaps

在移动设备(触摸屏)上缩放后,Highmap 数据点单击事件中断 有什么建议吗? enter image description here

最佳答案

tooltip.pointFormatter 与 useHTML 结合使用仍然期望一个字符串作为返回值,因此应该主要用于 CSS/HTML 格式化。 我建议使用您自己的 HTML 工具提示来实现更高级的内容,例如按钮:

 Highcharts.wrap(Highcharts.Point.prototype, 'select', function (proceed) {
    proceed.apply(this, Array.prototype.slice.call(arguments, 1));
    var points = mapChart.getSelectedPoints();
    $('tooltip-button-close').click(function () {
        points[0].select(false);
    }
   });

演示:https://www.highcharts.com/maps/demo/rich-info

关于jquery - highmap 数据点点击事件在移动设备(触摸屏)上缩放后中断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49270895/

相关文章:

javascript - 当通过 innerHTML 添加 html 内容时,Popover 不显示

javascript - jqGrid:是否有网格完成且没有行的事件?

jquery - 如何选择或取消选择 JQuery Mobile 中的所有复选框?

css - 如何在不重叠的情况下定位到右下角

jquery - 保持表的大小不变,同时更改表中元素的数量

javascript - jQuery UI 覆盖重复修复 "Auto"尺寸

html - 如何在保持输入值内的文本不变的情况下删除 html 元素?

javascript - 绑定(bind)后 CSS 类样式未更新

javascript - CS-Cart Ajax响应div

JavaScript 与 PHP 对数组进行排序