Skip to content

sheiun/leaflet-color-number-markers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leaflet-color-number-markers

color and number variations of the standard leaflet markers:

Color Marker 2x Marker
Blue Marker Blue 2x  777 Marker Blue

Install

npm install --save leaflet-color-number-markers
# Or
yarn add leaflet-color-number-markers

Usage

Installed

import icons from "leaflet-color-number-markers";

L.marker([51.5, -0.09], { icon: icons.black.numbers[777] }).addTo(map);

Others

let blackIcon0 = new L.Icon({
  iconUrl:
    "https://raw.githubusercontent.com/sheiun/leaflet-color-number-markers/main/dist/img/black/marker-icon-2x-black-0.png",
  shadowUrl:
    "https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png",
  iconSize: [25, 41],
  iconAnchor: [12, 41],
  popupAnchor: [1, -34],
  shadowSize: [41, 41],
});

L.marker([51.5, -0.09], { icon: blackIcon0 }).addTo(map);

About

Color and number variations of the standard leaflet markers

Resources

License

Stars

Watchers

Forks

Packages

No packages published