vm-leaflet-icons

0.1.0 • Public • Published

VM icons for leaflet

NPM version

Usage

import L                  from "leaflet";
import create, { icons }  from "vm-leaflet-icons";

// ...

// create a gray icon
var default = create();

// create a icon for the 'company' category
var company = create({category:'company'});

// create a icon with shadow
var shadowed = create({category: 'event', shadow:true});

// use deafult icons
L.marker([51.5, -0.09], { icon: icons.company }).addTo(map);

// ...

Readme

Keywords

Package Sidebar

Install

npm i vm-leaflet-icons

Weekly Downloads

2

Version

0.1.0

License

GPL-3.0

Last publish

Collaborators

  • flosse