← API Reference

Examples

D3.js maps built with the mapjson API

countries · low detail
World Countries
The minimal mapjson call — no parameters needed. Returns 110m world countries as geometry-only topojson. The fastest starting point for any world map.
countries · medium detail · filter · properties
Europe with Hover
Filtered to European countries at medium resolution with country names as properties. Hover to inspect each country.
regions · medium detail · filter
USA States
US administrative regions using the regions layer filtered to a single country. AlbersUsa projection for clean continental rendering.
countries · disputed territories
Disputed Territories
World countries including disputed and partially-recognized territories — Kosovo, Western Sahara, Palestine, and others — highlighted separately.
countries · medium detail · filter · properties
Caribbean Islands
The Caribbean zoomed in at medium detail — each territory appears as its own polygon. Aruba, Martinique, Guadeloupe, Caribbean Netherlands and others all hover correctly with their own ISO codes.
countries · rivers · lakes · multiple layers
Physical Features
Three API calls composed into one map — countries as the base layer, overlaid with rivers and lakes. Shows how to build up a richer world map from independent layers.