PNG
License
Spatly Marks are free to use in personal and commercial projects. Attribution is appreciated, not required. Do not resell the set as-is.
UI icons
Fit
A free SVG map icon from Spatly Marks, an original first-party kit. Recolour and export it below, or open it straight in the studio.
SVG source
html
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" data-mark="fit" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15"/><rect x="8.5" y="8.5" width="7" height="7" rx="1"/></svg>
How to use Fit
MapLibre GL
ts
import { markDataUrl } from "@spatly/marks";
map.loadImage(markDataUrl("fit", { size: 64 }), (err, img) => {
if (!err && img) map.addImage("fit", img);
});
Leaflet
ts
import { markDataUrl } from "@spatly/marks";
const icon = L.icon({
iconUrl: markDataUrl("fit", { size: 48, fill: "#e81860" }),
iconSize: [24, 24],
iconAnchor: [12, 12],
});
L.marker([41.0082, 28.9784], { icon }).addTo(map);
HTML
html
<!-- Paste the SVG straight in, or reference a saved file -->
<img src="fit.svg" width="24" height="24" alt="Fit" />
React
tsx
import { Mark } from "@spatly/marks";
<Mark name="fit" size={24} />
Similar marks
Use Fit on your own map.
Spatly Marks power every layer and annotation in the studio. Drop a GeoJSON and place them on live data.
41.0082°N 28.9784°E · z 11.3 · ⟂ 0°