leaflet-div-style-icon

v0.1.0
DivIcons that can be passed svg-like style rules
leaflet

Styleable Leaflet DivIcons

Divicons for rectangles and circles that can be passed svg-like style rules

Ideally it will be something like:

var icon = L.circleDivIcon({
  color: 'red'
});

where the object passed to the constructor is just like any style hash you give to the leaflet svg layers.

npm i leaflet-div-style-icon

Metadata

  • MIT
  • Whatever
  • uniphil
  • released 8/28/2014

Downloads