color variations of the standard leaflet marker
Switch branches/tags
Nothing to show
Clone or download
Latest commit 575461f Aug 25, 2018
Permalink
Failed to load latest commit information.
img Add missing marker-shadow Oct 4, 2017
js Added javascript file with objects for all icons. Apr 10, 2016
README.md remove useless url Oct 5, 2017
bower.json Add initial bower.json. Jul 16, 2018

README.md

leaflet-color-markers

color variations of the standard leaflet markers:

Color Marker 2x Marker
Blue Marker Red 2x Marker Red
Red Marker Red 2x Marker Red
Green Marker Green 2x Marker Green
Orange Marker Orange 2x Marker Orange
Yellow Marker Grey 2x Marker Grey
Violet Marker Grey 2x Marker Grey
Grey Marker Grey 2x Marker Grey
Black Marker Grey 2x Marker Grey

Usage

var greenIcon = new L.Icon({
  iconUrl: 'https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.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: greenIcon}).addTo(map);