Map pin icon
Added in v0.1.0
A free pencil-style map pin icon, drawn by code from 1 arc, 2 curves and 1 circle. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use map-pin
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { MapPin } from '@matita/icons/react';
<MapPin size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="map-pin" />JavaScript
import { MapPin, toSvg } from '@matita/icons';
toSvg(MapPin, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-map-pin" data-sketch="" aria-hidden="true"><path d="M6.24 12.8C6.11 12.34 5.46 10.94 5.47 10.02C5.47 9.1 5.88 8.12 6.28 7.26C6.68 6.4 7.16 5.45 7.87 4.83C8.58 4.22 9.6 3.76 10.53 3.56C11.46 3.36 12.52 3.44 13.45 3.65C14.39 3.86 15.4 4.23 16.15 4.81C16.9 5.39 17.55 6.27 17.97 7.14C18.38 8.01 18.64 9.06 18.64 10.02C18.64 10.98 18.08 12.42 17.97 12.9" stroke-width="1.68"/><path d="M5.89 11.7Q7.38 16.37 12.17 21.07" stroke-width="1.728"/><path d="M18.47 11.9Q16.4 16.35 11.66 21.29" stroke-width="1.488"/><path d="M9.67 10.42C9.67 10.28 9.62 9.86 9.66 9.59C9.7 9.31 9.76 9.01 9.9 8.77C10.04 8.53 10.28 8.34 10.5 8.14C10.71 7.95 10.94 7.71 11.21 7.6C11.49 7.48 11.82 7.46 12.13 7.46C12.44 7.47 12.77 7.51 13.05 7.62C13.34 7.74 13.59 7.95 13.82 8.15C14.06 8.36 14.29 8.59 14.46 8.86C14.62 9.14 14.79 9.46 14.83 9.78C14.86 10.09 14.76 10.44 14.67 10.76C14.57 11.07 14.45 11.39 14.27 11.66C14.09 11.94 13.84 12.21 13.56 12.4C13.29 12.6 12.95 12.74 12.61 12.83C12.27 12.93 11.9 13 11.54 12.97C11.18 12.95 10.79 12.85 10.47 12.69C10.14 12.52 9.83 12.26 9.6 11.98C9.37 11.7 9.2 11.36 9.07 11.01C8.94 10.67 8.87 10.11 8.83 9.93" stroke-width="1.392"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { MapPin } from '@matita/icons/react';
<MapPin size={32} pencil />The file is icons/map-pin.svg in the package (pencil/map-pin.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for map-pin
Map pin is not stored as a drawing. It is a recipe of 1 arc, 2 curves and 1 circle on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
A 12 10 6.5 160 380;
Q 5.9 12.2 7.5 16.5 12 21;
Q 18.1 12.2 16.5 16.5 12 21;
C 12 10 2.3
map-pin as a number: 280087587
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, B bezier curve, S smooth line, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of map-pin. Seed 0 is the default.
map-pin from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/map-pin.svg.
True pixel sizes.