Theme
Design your own
On this page (3)

§An atlas

Search a continent, a country or a state - Enter frames it and shows what it holds. Double click a country to drill down, Up steps out, a click picks a region. Callouts name everything in view.

§What is in it

PageWhat it covers
Geo MapThe component: projections, levels, palettes, borders, layers, its State API and API
Regions & SelectionPicking one or several regions, the four highlight styles, the hover lift, choropleth styles
Search & FocusSearch by name, framing a region with its children, drilling down and stepping out
CalloutsA leader line from every region in view to its name outside the map
GPS & GeodesyDistances, bearings and geodesic lines on the WGS84 ellipsoid (GeographicLib)
S2 CellsCells from GPS positions, tokens and exact ids, neighbors, parents and children
RoutingShortest routes over supplied segment lengths, positions inside segments, a Morton index
Data & EncodingThe Natural Earth data, its levels of detail, the DGEO format, your own GeoJSON

§What it costs

The component ships its own code only - the projections and paths (d3-geo with its d3-array helpers), the ellipsoidal geodesics (GeographicLib) and the data's metadata format (defuss-dson) load from their pinned official builds with the first map on a page, about 90 KB minified. S2, the Morton index, the routing and the data decoder are the component's own. The data loads by need: a 97 KB world overview first, a country's detail and its states once they come into view.

Everything is generalized boundary data at atlas scale: Natural Earth v5.1.2, public domain. A "state" is Natural Earth's first administrative level - a German Land, a French region or department, a US state - not a uniform political category; these are not street or cadastral boundaries.

Comments, ideas or improvements? Edit this page's source on GitHub