我想在 JVector map 上创建自定义标记。我的想法是使用 CSS3 来显示一个简单的红色脉动环。
到目前为止我只能使用
onMarkerLabelShow: function(event, label, code) {
label.html("<div class='pulse'></div>");
},
这是不对的,因为我必须将鼠标悬停在标记上才能工作。它不会一直有效。关于如何实现这个的任何想法?
谢谢
最佳答案
我没能在 SVG 中找到圆圈,所以我进入了 jvector 核心并找到了这一行:
this.shape.addClass('jvectormap-marker jvectormap-element');
并这样添加了我的动画类:
this.shape.addClass('jvectormap-marker jvectormap-element animated flash');
关于javascript - JVector map 脉动标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28475549/