leaflet-extra-markers
Version:
Custom map markers for Leaflet JS
34 lines (33 loc) • 5.38 kB
JavaScript
/**
* @name PinTeardropBorder
* @preview 
* @type {Array}
*/
export const PinTeardropBorder = [
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: "30",
height: "41",
fill: "currentColor",
viewBox: "0 0 30 41",
},
[
[
"path",
{
d: "M15 1a14 14 0 0 1 13.96 15.04l-.01.16-.02.17c0 .06 0 .11-.02.17 0 .06 0 .12-.02.18 0 .05 0 .1-.02.15a12.6 12.6 0 0 1-.05.35l-.02.16-.03.18-.02.1-.13.58v.03c-.2.82-.47 1.6-.8 2.36l-.02.05-.25.52-.01.03-.28.53-.01.03c-.51.91-1.12 1.76-1.81 2.54l-.03.03v.01C21 29 17 35 15.9 40.4a1 1 0 0 1-1.83 0C13 35 9 29 4.6 24.37h-.01l-.03-.04-.05-.06-.32-.37-.1-.13a14.26 14.26 0 0 1-.98-1.38l-.06-.09c-.1-.15-.18-.3-.27-.46l-.05-.1a14.02 14.02 0 0 1-.77-1.64l-.03-.08c-.13-.34-.25-.7-.36-1.06l-.04-.13-.14-.54-.01-.06-.13-.57-.02-.1-.03-.18-.02-.16-.03-.16-.03-.19c0-.05 0-.1-.02-.15 0-.06 0-.12-.02-.18l-.01-.17-.02-.17-.01-.16A14 14 0 0 1 15 1Z",
},
],
["path", { fill: "#fff", d: "M26.9 20.25Z" }],
[
"path",
{
fill: "#fff",
"fill-rule": "evenodd",
d: "M15 1a14 14 0 0 1 13.96 15.04l-.01.16-.02.17c0 .06 0 .11-.02.17 0 .06 0 .12-.02.18 0 .05 0 .1-.02.15a12.6 12.6 0 0 1-.05.35l-.02.16-.03.18-.02.1-.13.58v.03c-.2.82-.47 1.6-.8 2.36l-.02.05-.25.52-.01.03-.28.53-.01.03c-.51.91-1.12 1.76-1.81 2.54l-.03.03v.01C21 29 17 35 15.9 40.4a1 1 0 0 1-1.83 0C13 35 9 29 4.6 24.37h-.01l-.03-.04-.05-.06-.32-.37-.1-.13a14.26 14.26 0 0 1-.98-1.38l-.06-.09c-.1-.15-.18-.3-.27-.46l-.05-.1a14.02 14.02 0 0 1-.77-1.64l-.03-.08c-.13-.34-.25-.7-.36-1.06l-.04-.13-.14-.54-.01-.06-.13-.57-.02-.1-.03-.18-.02-.16-.03-.16-.03-.19c0-.05 0-.1-.02-.15 0-.06 0-.12-.02-.18l-.01-.17-.02-.17-.01-.16A14 14 0 0 1 15 1Zm0 1A13 13 0 0 0 2.04 15.97v.15l.02.15.02.16c0 .09.01.12.02.17l.01.14.03.17.02.16.03.14c0 .06.02.12.03.17l.01.09.12.53v.02l.01.03.13.51.04.12c.1.33.2.66.33.98l.02.04v.04l.2.46.04.09a12.97 12.97 0 0 0 .79 1.49l.01.03.02.02c0-.01-.01-.01 0 0l.02.03c.17.29.36.56.56.84l.1.13.25.31.1.12a13.2 13.2 0 0 0 .3.36l.01.01v-.01l-.02-.02.04.05v.01h.01l.03.04.01.01c3.9 4.11 7.57 9.37 9.17 14.42a.5.5 0 0 0 .96 0c1.6-5.05 5.26-10.3 9.15-14.4l.02-.02.01-.01.03-.04c.65-.72 1.21-1.5 1.68-2.36l.01-.02c.1-.16.18-.33.26-.5l.02-.02.22-.49.01-.02.02-.03c.3-.7.55-1.43.73-2.18V18l.01-.01.11-.52v-.01l.01-.05.01-.04.03-.17.03-.14.02-.16.02-.17.02-.14.02-.17.02-.16.01-.15.01-.15A13 13 0 0 0 15 2Z",
"clip-rule": "evenodd",
},
],
],
];