Skip to content

bschwede/leaflet.sprite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

npm install
npm run build

should work with browserify

Releases

No releases published

Packages

No packages published

Languages

  • CSS 51.7%
  • JavaScript 33.4%
  • HTML 14.9%