1.0.7 • Published 3 years ago

leaflet-color-number-markers v1.0.7

Weekly downloads
11
License
BSD-2-Clause
Repository
github
Last release
3 years ago

leaflet-color-number-markers

color and number variations of the standard leaflet markers:

ColorMarker 2xMarker
BlueMarker Blue 2x  777Marker 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);
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago