Map Data Policy
react-svg-worldmap ships a single default world map for thematic data visualization. It is a small-scale SVG intended for charts and dashboards, not for legal, diplomatic, navigational, or cadastral use.
Neutrality Goals
The project aims to present neutral and balanced map content by separating naming policy, geometry source, and dispute handling instead of treating one raw dataset as authoritative for all three.
The project does not endorse any sovereignty claim. When a territory is disputed, partially recognized, or otherwise politically sensitive, the project aims to make that ambiguity visible and auditable instead of silently choosing a side.
Source Hierarchy
The project uses this order of precedence when reviewing or updating the bundled map:
UNSD M49andUNTERMfor country and area naming, codes, and neutral terminologyNatural Earth Admin 0for the small-scale base geometry used by the bundled SVG mapdocs/map-data-overrides.jsonfor disputed territories, recognition- sensitive cases, and post-source policy adjustments- Reference-only validation against other datasets when maintainers need more context for a specific case
Default Representation
The default package output is a thematic world map, not a legal boundary reference. For disputed or recognition-sensitive areas, the project prefers a coarse small-scale representation with explicit documentation over precise boundary claims that could imply a political endorsement.
The package provides one neutral global representation. It does not provide country-specific localized map variants.
Dispute Handling Modes
Each sensitive case in the overrides register should use one of these modes:
standard: keep the base geometry unchangedcoarse-neutral: intentionally avoid precise contested boundary claims at this scalename-policy: use naming and terminology rules as the main policy surfacemaintainer-review-required: do not change this case silently
Initial Tier 1 Scope
The initial supported disputed-territory dataset is limited to these Tier 1 cases:
- Crimea
- Palestinian Territories
- Taiwan
- Kashmir
- Western Sahara
- Kosovo
Tier 2 candidates for future expansion include South China Sea, India-China border disputes, Abkhazia, South Ossetia, and Transnistria. Tier 3 candidates include Nagorno-Karabakh, Northern Cyprus, Somaliland, Falkland Islands or Malvinas, and Gibraltar. Tier 2 and Tier 3 cases are deferred unless a later feature explicitly expands the supported dataset.
Inclusion Criteria
A territory must meet at least one of these criteria before it can be accepted into the disputed-territory dataset:
- It is referenced in United Nations resolutions, processes, or recognized programs.
- It is a recognized dispute between two or more United Nations member states.
- It is widely covered in major geopolitical or international-law datasets.
- It is explicitly handled as disputed or politically sensitive by major map platforms.
Claims outside these criteria should be rejected or deferred. This includes fringe, unsourced, advocacy-driven, unknown-island, or whole-country dispute claims that lack credible public backing.
Contributor Requirements
Geopolitical issues and pull requests must include:
- The affected territory or territories.
- The requested change.
- Public source evidence.
- Which inclusion criterion is met.
- The expected impact on names, boundaries, metadata, display, documentation, or package behavior.
Maintainers should not merge geopolitical changes that lack enough public evidence to apply this policy consistently.
Review Outcomes
Maintainers should use one of these outcomes for geopolitical issues and pull requests:
accept: The proposal is credible, scoped, sourced, and consistent with this policy.request-evidence: The proposal may be credible, but the contributor has not provided enough public evidence.redirect: The proposal asks to silently change sovereignty, but the better outcome is dispute metadata, display guidance, or documentation.defer: The proposal concerns a credible dispute outside the current release scope, such as a deferred Tier 2 or Tier 3 candidate.reject: The proposal is fringe, unsourced, advocacy-driven, or outside the project cutoff criteria.
Examples:
- Accepted Tier 1 example: Crimea should be documented as a disputed territory with Ukraine as the recognized baseline and Russia as the controlling power where that distinction is relevant.
- Deferred Tier 2 example: South China Sea island groups may be credible future candidates, but they are outside the initial Tier 1 dataset.
- Rejected fringe example: a request to mark an entire recognized country or an unknown island as disputed without credible backing should be rejected.
Dispute Metadata In The Package
The Tier 1 cases are also exported as metadata from react-svg-worldmap (disputedTerritories, getDisputeByCountryCode, and related types), and passed to callbacks as context.dispute for the rendered countries they touch. The metadata records recognized sovereignty, current control, dispute parties, UN standing, and display guidance separately.
Disputed-Territory Overlay
The package also ships shapes for the disputed territories themselves, drawn only when consumers set showDisputedTerritories. The default rendering and the bundled country geometry are unchanged.
- Source:
Natural Earth 5.1.2 Admin 0 Breakaway and Disputed Areas(10m), pinned to thev5.1.2tag, simplified and quantized bylib/scripts/build-disputed-territories.mjsintolib/src/disputed-territories.topo.ts. - Territories: Crimea; Jammu and Kashmir, Azad Kashmir, Gilgit-Baltistan, Aksai Chin, and Siachen Glacier; West Bank (including East Jerusalem, following UN usage) and Gaza; the Moroccan- and SADR-administered parts of Western Sahara; Kosovo; Taiwan.
- Each shape carries Natural Earth's administration note (for example "Admin. by Russia; Claimed by Ukraine") next to the project's dispute metadata. The overlay draws territories above the countries; it does not reassign them.
- Tier 2 and Tier 3 cases present in the source (for example the Paracel and Spratly Islands, or Demchok) are not included.
Detailed Geometry
With zoom, the map draws more detailed country borders once zoomed in. They are generated from the same source family as the default map and follow the same assignments.
- Source:
Natural Earth Admin 0 Countries(10m), as redistributed by theworld-atlas@2.0.2package (countries-10m.json), pinned as a devDependency.lib/scripts/build-detailed-countries.mjsgenerateslib/src/map-assets/countries-detailed.cjsfrom it, and CI fails if the committed file is out of date. - Same countries, names, and codes as the default map, in the same order.
- Crimea is part of Ukraine, as in the default map and following the recognized baseline above. Natural Earth's default (de facto) view places it in Russia, so the generator moves it to Ukraine and dissolves the border between them.
- Areas that Natural Earth records as separate units but the default map includes in a country are merged into it: Akrotiri, Dhekelia, and the U.N. buffer zone into Cyprus; Baikonur into Kazakhstan; the Guantánamo Bay naval base into Cuba; Hong Kong and Macao into China.
- Siachen Glacier, claimed by India and Pakistan, is not assigned to either and is left blank in the detailed borders; the disputed-territory overlay (
showDisputedTerritories) draws it. - Countries and territories that the default map does not include (for example Andorra, Monaco, Singapore, Malta, or Gibraltar) are left out of the detailed borders too. The generator fails on any Natural Earth unit that is not explicitly listed, so new source units need a policy decision.
- Some countries gain outlying islands or overseas territories that the coarser default map omits (for example French overseas departments or the Caribbean Netherlands).
Antarctica
Since 3.0.0 the map draws Antarctica (turn it off with showAntarctica={false}) as land without data, from the same Natural Earth sources (110m by default, 10m when zoomed in). It is not one of the map's countries: it takes no data and has no tooltip. Territorial claims, which the Antarctic Treaty sets aside, are not shown.
Oceans, Seas And Lakes
With zoom.showWater, the map names oceans, seas and lakes and draws the 100 largest lakes as water.
- Sources:
Natural Earth Geography Marine PolysandNatural Earth Lakes(10m), v5.1.2, public domain, pinned by SHA-256.lib/scripts/build-water.mjsgenerateslib/src/map-assets/water.cjs, and CI fails if the committed file is out of date. - Names are Natural Earth's English names, which follow UN usage where a name is disputed: "Sea of Japan" (also called "East Sea"), "Persian Gulf" (also called "Arabian Gulf"), "South China Sea". Naming a body of water does not endorse any claim over it or its islands.
- Lakes are drawn by their Natural Earth outlines, on top of the countries; they do not change which country any land or water belongs to.
Regions (Optional Companion Package)
States, provinces, and other regions are not part of this package. The optional react-svg-worldmap-regions package supplies them through detailProvider, and follows this policy:
- Sources, all public domain and pinned by SHA-256:
Natural Earth Admin 1 States, Provinces(10m), v5.1.2; and geoBoundaries for Kenya's counties, which replaced the provinces Natural Earth has. Countries whose current governing tier is available only under a license that requires attribution (Nepal, Bangladesh, Côte d'Ivoire, Senegal) have no governing-tier regions. - By default only regions that govern: a level of government between the country and its municipalities, per the OECD–UCLG World Observatory on Subnational Government Finance and Investment (SNG-WOFI) and national sources. Countries without one (for example Israel or Ireland) have no regions.
tier: "all"gives every Natural Earth admin-1 unit. Each country's tier and the reason are listed in that repository'sdocs/governing-tier.md. - Regions only subdivide the countries this map draws. Every region must lie inside the country that the detailed borders above draw it in; the generator checks this for every region and fails otherwise, so the two layers never disagree on a disputed boundary.
- Crimea (UA-43) and Sevastopol (UA-40) are regions of Ukraine. Natural Earth's default view places them in Russia; the generator moves them and fails if they end up anywhere else.
- Countries and territories the map does not draw get no regions.
- Recognition-sensitive cases are listed in that repository's
docs/map-data.md.
Maintenance Workflow
When maintainers need to revisit a geopolitical case or update the bundled map:
- Record the policy decision in
docs/map-data-policy.mdordocs/map-data-overrides.json. - Review whether the generated geometry still matches the written policy.
- Regenerate the bundled topology only after the policy change is documented.
- Mention user-visible policy changes in release notes or changelog entries.
Current Bundled Geometry
The current bundled map remains a generated small-scale topology checked into the repo. This policy branch documents how future geometry reviews should be handled; it does not yet replace the shipped world geometry.
References
UNSD M49: https://unstats.un.org/unsd/methodology/m49/UNTERM: https://unterm.un.org/Natural Earth Admin 0 Countries: https://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-0-countries/