Map icon
A free pencil-style map icon, drawn by code from 1 closed shape and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use map
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 { Map } from '@matita/icons/react';
<Map size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="map" />JavaScript
import { Map, toSvg } from '@matita/icons';
toSvg(Map, { 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" data-sketch="" aria-hidden="true"><path d="M3.07 6.04Q6.06 4.87 8.92 3.42Q11.99 4.58 14.95 5.99Q17.86 4.58 20.94 3.58Q21.34 10.72 20.82 17.85Q17.79 19.04 14.97 20.69Q12.16 19.16 9.14 18.08Q6.2 19.42 3.11 20.42Q3.55 13.23 3.07 6.04Q3.54 5.84 4 5.63" stroke-width="1.424"/><path d="M8.82 3.39Q9.41 10.81 8.97 18.23" stroke-width="1.616"/><path d="M14.81 5.73Q14.9 13.17 14.84 20.61" stroke-width="1.424"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Map } from '@matita/icons/react';
<Map size={32} pencil />The file is icons/map.svg in the package (pencil/map.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for map
Map is not stored as a drawing. It is a recipe of 1 closed shape and 2 lines 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.
Z 3 6 9 3.5 15 6 21 3.5 21 18 15 20.5 9 18 3 20.5;
L 9 3.5 9 18;
L 15 6 15 20.5
map as a number: 3751997361
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, 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. Seed 0 is the default.
True pixel sizes.