Skip to content

johannnson/leaflet-color-markers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

color variations of the standard leaflet marker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%