Skip to content

MazeMap/leaflet-icon-pulse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

leaflet-pulse-icon

leaflet-pulse-icon

A very simple Leaflet plugin provides pulsing icon.

Requires Leaflet 0.7.0 or newer and modern browser

Demo

Check out demo!

Using the plugin

Add the JavaScript and CSS files

Include the CSS and JavaScript files located in \src folder.

<script src="src/L.Icon.Pulse.js" />
<link rel="stylesheet" href="src/L.Icon.Pulse.css" />

Usage

Create a new L.Icon.Pulse

var pulsingIcon = L.icon.pulse({iconSize:[20,20],color:'red'});
var marker = L.marker([50,15],{icon: pulsingIcon}).addTo(map);

Options

Property Description Default Value Possible values
color color of icon 'red' any CSS color
iconSize size of L.divIcon [12,12] [width,height]

License

leaflet-pulse-icon is free software, and may be redistributed under the MIT-LICENSE.

About

Leaflet pulsing icon plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 78.2%
  • JavaScript 21.8%