Skip to content

ogi-ogham/leaflet-color-markers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

leaflet-color-markers

color variations of the standard leaflet marker and the OGI OGHAM markers:

Color Marker 2x Marker
CATTU Marker CATTU 2x Marker CATTU
CUNA Marker CUNA 2x Marker CUNA
MUCOI Marker MUCOI 2x Marker MUCOI
LUG Marker LUG 2x Marker LUG
ERC Marker ERC 2x Marker ERC
DALAGNI Marker DALAGNI 2x Marker DALAGNI
DERCMASOC Marker DERCMASOC 2x Marker DERCMASOC
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/ogi-ogham/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);
var cattuIcon = new L.Icon({
	iconUrl: 'https://cdn.rawgit.com/ogi-ogham/leaflet-color-markers/master/img/CATTU-2x.png',
	iconSize: [41, 41],
	iconAnchor: [20, 41],
	popupAnchor: [0, -41]
});

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

About

color variations of the standard leaflet marker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%