leaflet-extra-markers
Version:
Custom map markers for Leaflet JS
33 lines (32 loc) • 1.75 kB
JavaScript
/**
* @name PinDiamondPanel
* @preview 
* @type {Array}
*/
export const PinDiamondPanel = [
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: "30",
height: "41",
fill: "currentColor",
viewBox: "0 0 30 41",
},
[
[
"path",
{
d: "M12.2 1.16a3.97 3.97 0 0 1 5.6 0L28.85 12.2a3.99 3.99 0 0 1 .39 5.16L15.93 40.4a1 1 0 0 1-1.83.05L.69 17.24a3.97 3.97 0 0 1 .47-5.05L12.2 1.16Z",
},
],
[
"path",
{
fill: "#fff",
"fill-rule": "evenodd",
d: "M12.2 1.16a3.97 3.97 0 0 1 5.6 0L28.85 12.2a3.99 3.99 0 0 1 .39 5.16L15.93 40.4a1 1 0 0 1-1.83.05L.69 17.24a3.97 3.97 0 0 1 .47-5.05L12.2 1.16Zm4.19 1.42a1.97 1.97 0 0 0-2.78 0L2.57 13.6a1.97 1.97 0 0 0 0 2.78l11.04 11.03c.77.77 2.01.77 2.78 0L27.42 16.4c.77-.77.77-2.01 0-2.78L16.4 2.58Z",
"clip-rule": "evenodd",
},
],
],
];