简体   繁体   English

JVector地图脉动标记

[英]JVector Map Pulsating Marker

I want to create a custom marker on a JVector Map. 我想在JVector Map上创建一个自定义标记。 My idea is to use CSS3 to show a simple red pulsating ring. 我的想法是使用CSS3来显示一个简单的红色脉动环。

So far i have only been able to obtain this using 到目前为止,我只能使用

onMarkerLabelShow: function(event, label, code) {
 label.html("<div class='pulse'></div>");                
},

which is not right as I have to hover over the marker for this to work. 这是不对的,因为我必须将鼠标悬停在标记上才能工作。 It will not work all the time. 它不会一直工作。 Any ideas on how I can implement this? 关于如何实现这一点的任何想法?

Thanks 谢谢

I did not manage to find the circle inside the SVG so what I did was i went into the jvector core and found this line: 我没有找到SVG内部的圆,所以我要做的是进入jvector核心并找到了这条线:

this.shape.addClass('jvectormap-marker jvectormap-element');

and added my animation classes as so: 并按如下方式添加了我的动画类:

this.shape.addClass('jvectormap-marker jvectormap-element animated flash');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM