leaflet-color-number-markers

1.0.7 • Public • Published

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);

Readme

Keywords

Package Sidebar

Install

npm i leaflet-color-number-markers

Weekly Downloads

79

Version

1.0.7

License

BSD-2-Clause

Unpacked Size

49.5 MB

Total Files

20059

Last publish

Collaborators

  • sheiun