mapshakers / leaflet-icon-pulse

Leaflet pulsing icon plugin.
MIT License
207 stars 69 forks source link

Animation stop for the pulsating icon not correct #7

Closed olakara closed 7 years ago

olakara commented 7 years ago

I have few location that do not need the pulsating animation. For those locations, I did the following:

L.icon.pulse({iconSize:[32,32],color:'#4885ed',animate: false});

This results in stopping the animation, but there is a visible ring on the marker which spoils the idea of stopping the pulsate behavior..

Here is the result: capture

I suspect the lines 30 ~ 32 in the source file:

if (!this.options.animate){ after.push('animation: none'); }

but, I don't know how to avoid the ring.

olakara commented 7 years ago

Refer to pull request #8 .. It fixes this issue..