leaflet-extra-markers
Version:
Custom map markers for Leaflet JS
33 lines (32 loc) • 1.74 kB
JavaScript
/**
* @name PointDiamondBorder
* @preview 
* @type {Array}
*/
export const PointDiamondBorder = [
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: "30",
height: "30",
fill: "currentColor",
viewBox: "0 0 30 30",
},
[
[
"path",
{
d: "M1.16 17.8a3.97 3.97 0 0 1 0-5.6L12.2 1.15a3.97 3.97 0 0 1 5.62 0L28.84 12.2a3.97 3.97 0 0 1 0 5.62L17.8 28.84a3.97 3.97 0 0 1-5.62 0L1.16 17.8Z",
},
],
[
"path",
{
fill: "#fff",
"fill-rule": "evenodd",
d: "M12.2 1.16a3.97 3.97 0 0 1 5.6 0L28.85 12.2a3.97 3.97 0 0 1 0 5.62L17.8 28.84a3.97 3.97 0 0 1-5.62 0L1.16 17.8a3.97 3.97 0 0 1 0-5.62L12.2 1.16Zm4.9.7a2.97 2.97 0 0 0-4.2 0L1.87 12.9a2.97 2.97 0 0 0 0 4.2L12.9 28.13a2.97 2.97 0 0 0 4.2 0L28.13 17.1a2.97 2.97 0 0 0 0-4.2L17.1 1.87Z",
"clip-rule": "evenodd",
},
],
],
];