leaflet-extra-markers
Version:
Custom map markers for Leaflet JS
33 lines (32 loc) • 3.71 kB
JavaScript
/**
* @name PinTriangleBorder
* @preview 
* @type {Array}
*/
export const PinTriangleBorder = [
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: "30",
height: "41",
fill: "currentColor",
viewBox: "0 0 30 41",
},
[
[
"path",
{
d: "M15 0c.53 0 1.08.14 1.56.44C24.12 5.06 29.3 12.96 29.99 21.9a3.06 3.06 0 0 1-1.66 2.97 29.2 29.2 0 0 1-5.26 2.04 3 3 0 0 0-1.77 1.49l-.07.13-5.26 11.78-.04.08a1 1 0 0 1-1.82 0l-.03-.05-5.53-11.91a3 3 0 0 0-1.72-1.55l-.06-.02a29.19 29.19 0 0 1-5.1-2A3.06 3.06 0 0 1 .01 21.9c.52-6.8 3.65-13 8.44-17.62A26.35 26.35 0 0 1 12.65.9l.02-.01.03-.02.65-.41.18-.1.18-.1c.4-.18.84-.27 1.28-.26Z",
},
],
[
"path",
{
fill: "#fff",
"fill-rule": "evenodd",
d: "M15 0c.53 0 1.08.14 1.56.44C24.12 5.06 29.3 12.96 29.99 21.9a3.06 3.06 0 0 1-1.66 2.97 29.5 29.5 0 0 1-5.26 2.04 3 3 0 0 0-1.77 1.49l-.07.13-5.26 11.78a3.2 3.2 0 0 0-.04.08 1 1 0 0 1-1.83 0l-.02-.05-5.53-11.91a3 3 0 0 0-1.72-1.55l-.06-.02a29.19 29.19 0 0 1-5.1-2A3.06 3.06 0 0 1 .01 21.9c.52-6.8 3.65-13 8.44-17.62A26.35 26.35 0 0 1 12.65.9l.02-.01.03-.02.65-.41.18-.1.18-.1c.4-.18.84-.27 1.28-.26Zm-.03 1c-.29 0-.58.05-.85.17l-.08.05a.55.55 0 0 0-.04.02l-.13.07-.01.01-.62.39h-.01l-.01.01h-.01v.01l-.03.02h-.01C11.7 2.71 10.37 3.8 9.16 5l-.02.01A26.4 26.4 0 0 0 1.01 22c-.07.84.38 1.62 1.11 2l.52.25c1.23.59 2.48 1.08 3.77 1.48l.63.2h.03l.06.02h.02l.01.01a4 4 0 0 1 2.3 2.06v.01L14.56 39a.5.5 0 0 0 .9 0l4.86-10.87.01-.03.07-.13.01-.03a4 4 0 0 1 2.37-1.98h.02a28.2 28.2 0 0 0 5.08-1.98l.13-.07c.65-.4 1.04-1.14.98-1.92A26.78 26.78 0 0 0 16.72 1.72l-.68-.43-.12-.07A2 2 0 0 0 15 1h-.03Z",
"clip-rule": "evenodd",
},
],
],
];