leaflet-extra-markers
Version:
Custom map markers for Leaflet JS
33 lines (32 loc) • 3.13 kB
JavaScript
/**
* @name PinTrianglePanel
* @preview 
* @type {Array}
*/
export const PinTrianglePanel = [
"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.52 2.15a.98.98 0 0 0-.96-.04l-.1.05C7.4 6.48 2.63 13.81 2 22.06c-.03.44.2.85.57 1.03A26.63 26.63 0 0 0 13 25.93h.02l.87.05h.01l.57.02h1.06l.56-.02.78-.04c3.87-.24 7.3-1.21 10.56-2.85.37-.18.6-.59.57-1.03-.64-8.26-5.43-15.6-12.48-19.91Z",
"clip-rule": "evenodd",
},
],
],
];