leaflet-extra-markers
Version:
Custom map markers for Leaflet JS
33 lines (32 loc) • 1.91 kB
JavaScript
/**
* @name PinPentagonBorder
* @preview 
* @type {Array}
*/
export const PinPentagonBorder = [
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: "30",
height: "41",
fill: "currentColor",
viewBox: "0 0 30 41",
},
[
[
"path",
{
d: "M22.49 2c1.21 0 2.31.71 2.8 1.82l4.45 10c.38.86.34 1.86-.11 2.7L15.88 40.48a1 1 0 0 1-1.76 0L.37 16.52a3.06 3.06 0 0 1-.1-2.7l4.43-10A3.1 3.1 0 0 1 7.51 2h14.98Z",
},
],
[
"path",
{
fill: "#fff",
"fill-rule": "evenodd",
d: "M22.49 2c1.21 0 2.31.71 2.8 1.82l4.45 10c.38.86.34 1.86-.11 2.7L15.88 40.48a1 1 0 0 1-1.76 0L.37 16.52a3.06 3.06 0 0 1-.1-2.7l4.43-10A3.1 3.1 0 0 1 7.51 2h14.98ZM7.51 3c-.82 0-1.56.48-1.9 1.23l-4.43 9.99c-.26.58-.24 1.26.07 1.82l13.32 23.2a.5.5 0 0 0 .86 0l13.31-23.19v-.01c.32-.56.34-1.23.08-1.82l-4.44-10A2.07 2.07 0 0 0 22.62 3H7.51Z",
"clip-rule": "evenodd",
},
],
],
];