Revize 08854c45
Přidáno uživatelem Václav Honzík před asi 2 roky(ů)
frontend/src/features/TrackingTool/trackingToolUtils.ts | ||
---|---|---|
44 | 44 |
} |
45 | 45 |
|
46 | 46 |
const createMapMarkerSvg = (color: string) => { |
47 |
// return `data:image/svg+xml;utf8, ${encodeURIComponent(` |
|
48 |
// <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="${color}"> |
|
49 |
// <path d="M0 0h24v24H0z" fill="none" /><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /> |
|
50 |
// </svg>`)}` |
|
47 | 51 |
return `data:image/svg+xml;utf8, ${encodeURIComponent(` |
48 |
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="${color}"> |
|
49 |
<path d="M0 0h24v24H0z" fill="none" /><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /> |
|
50 |
</svg>`)}` |
|
52 |
<svg width="16px" height="16px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="blue" |
|
53 |
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"> |
|
54 |
<path |
|
55 |
fill="${color}" |
|
56 |
d="m13.25 7c0 3.75-5.25 7.25-5.25 7.25s-5.25-3.5-5.25-7.25c0-2.89949 2.35051-5.25 5.25-5.25 2.8995 0 5.25 2.35051 5.25 5.25z" /> |
|
57 |
<circle cx="8" cy="7" r="1.55" fill="white" /> |
|
58 |
</svg> `)}` |
|
51 | 59 |
} |
52 | 60 |
|
53 | 61 |
const mapMarkerSvgs = { |
Také k dispozici: Unified diff
better icon
re #9741