leaflet-pulse-icon

A very simple Leaflet plugin provides pulsing icon.
Requires Leaflet 0.7.0 or newer and modern browser
Demo
Using the plugin
Install
- clone repo
- run
npm install
Or copy files from releases.
Use
Include the CSS and JavaScript files located in \dist
directory.
Usage
Create a new L.Icon.Pulse
var pulsingIcon = Licon;var marker = L;
Options
Property | Description | Default Value | Possible values |
---|---|---|---|
color | color of icon | 'red' | any CSS color |
iconSize | size of L.divIcon | [12,12] | [width,height] |
animate | enable pulsing | true | any CSS color |
heatbeat | pulsing beat | 1 | number (seconds) |
License
leaflet-pulse-icon is free software, and may be redistributed under the MIT-LICENSE.