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
Api
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="api" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 4H6.5A2 2 0 0 0 4.5 6v4l-2 2 2 2v4a2 2 0 0 0 2 2H8M16 4h1.5a2 2 0 0 1 2 2v4l2 2-2 2v4a2 2 0 0 1-2 2H16"/><path d="M10 12h4"/></svg>
How to use Api
MapLibre GL
ts
import { markDataUrl } from "@spatly/marks";
map.loadImage(markDataUrl("api", { size: 64 }), (err, img) => {
if (!err && img) map.addImage("api", img);
});
Leaflet
ts
import { markDataUrl } from "@spatly/marks";
const icon = L.icon({
iconUrl: markDataUrl("api", { 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="api.svg" width="24" height="24" alt="Api" />
React
tsx
import { Mark } from "@spatly/marks";
<Mark name="api" size={24} />
Similar marks
Use Api 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°