color variations of the standard leaflet marker and the OGI OGHAM markers:
Color | Marker 2x | Marker |
---|---|---|
CATTU | ||
CUNA | ||
MUCOI | ||
LUG | ||
ERC | ||
DALAGNI | ||
DERCMASOC | ||
Blue | ||
Red | ||
Green | ||
Orange | ||
Yellow | ||
Violet | ||
Grey | ||
Black |
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);