JVector地图脉动标记

JVector Map Pulsating Marker

本文关键字:脉动 地图 JVector      更新时间:2023-09-26

我想在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');