Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sprite Based Retina Icons for Leaflet
CSS JavaScript
Branch: gh-pages
Failed to load latest commit information.
dist major update
example major update
src major update
.gitignore gitignore
LICENCE.md licence
README.md major update
index.html major update
package.json major update

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

Something went wrong with that request. Please try again.