Sprite Based Retina Icons for Leaflet
CSS JavaScript
Latest commit 77ddc53 Sep 17, 2014 @calvinmetcalf calvinmetcalf major update
Permalink
Failed to load latest commit information.
dist major update Sep 16, 2014
example major update Sep 16, 2014
src major update Sep 16, 2014
.gitignore gitignore Jan 19, 2013
LICENCE.md licence Mar 13, 2013
README.md major update Sep 16, 2014
index.html major update Sep 16, 2014
package.json major update Sep 16, 2014

README.md

leaflet sprites

use css style sprites, available colors are

  • blue (default)
  • green
  • orange
  • yellow
  • red
  • purple
  • violet

create using L.spriteIcon and use with L.marker e.g.

L.marker([42, -71], {
  icon: L.spriteIcon() //default blue
});

L.marker([42, -71.5], {
  icon: L.spriteIcon('red')
});


to build your own:

```bash
npm install
npm run build

should work with browserify