Show HN: VectorAtlas – a free 80KB SVG world map with per-country IDs

melenaos2 pts0 comments

GitHub - melenaos/Menelabs.VectorAtlas: Free, attribution-required SVG world map with per-country ISO paths, commercial no-attribution license available. · GitHub

/" data-turbo-transient="true" />

Skip to content

Search/

Sign in<br>Sign upAppearance settings

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

melenaos

Menelabs.VectorAtlas

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>11 Commits<br>11 Commits

brand

brand

data

data

dist

dist

docs

docs

examples

examples

scripts

scripts

.gitignore

.gitignore

LICENSE

LICENSE

README.md

README.md

llms.txt

llms.txt

package-lock.json

package-lock.json

package.json

package.json

View all files

Repository files navigation

VectorAtlas

A free, lightweight SVG world map generated from Natural Earth<br>public domain data. One per country, id-keyed by lowercase<br>ISO 3166-1 alpha-2 code, ready to drop into<br>choropleths, "submissions by country" heatmaps, or any SVG-based map UI.

Live demo · Examples

Why

Most free world map SVGs are either huge (multi-megabyte), missing per-country path IDs, or<br>carry their own attribution/linkware requirements. This one is generated directly from Natural<br>Earth (public domain, no attribution required by the source itself) via a small, reproducible<br>pipeline, and released under a permissive open license.

Getting the map

The generated output lives at dist/world.svg. Regenerate it yourself with:

npm install<br>npm run generate

Data source and coverage

Built primarily from Natural Earth's ne_110m_admin_0_countries (1:110m scale), which keeps<br>the file small and the level of detail simple. A handful of small nations don't exist at all in<br>the 110m dataset (too small to render at that scale), so those are patched in from the more<br>detailed ne_50m_admin_0_countries dataset instead: Cabo Verde, Comoros, Dominica, Maldives,<br>Malta, Mauritius, Saint Lucia, São Tomé and Príncipe, Seychelles, Singapore, and Saint Vincent<br>and the Grenadines.

Disputed or unrecognized territories that Natural Earth doesn't assign a standard ISO A2 code<br>to (e.g. Somaliland, Northern Cyprus) get a synthesized _name-style id instead of being<br>dropped from the map.

Examples

Live versions run on the examples page.<br>Source for all three lives in examples/: a basic embed, a data-driven<br>choropleth heatmap (hover tooltip, legend, color scale), and a clickable country selector.<br>Plain HTML, no build step or dependencies.

License

Released under CC BY 4.0 : free to use, including commercially, with attribution<br>to Menelabs / this repository.

A commercial license removing the attribution requirement is available as a one-time purchase:<br>see pricing.

About<br>Free, attribution-required SVG world map with per-country ISO paths, commercial no-attribution license available.<br>Resources<br>Readme<br>CC-BY-4.0 license<br>Activity<br>Stars<br>0 stars<br>Watchers<br>0 watching<br>Forks<br>0 forks<br>Report repository

Releases

Packages

Contributors

Languages

You can’t perform that action at this time.

attribution license country free world data

Related Articles