Guide
Put dots on the map. Every place on Earth belongs to the region of its closest dot, and the regions are coloured to match. This kind of map is called a Voronoi diagram. Here, "closest" is measured over the curved surface of the globe, the way a ship or a plane travels, so borders that look straight on a globe look bent on this flat map.
Adding, moving and removing
- Click or tap the map to add a dot. Tap close to an existing dot to select it instead.
- Drag a dot to move it; a label beside it shows where it is and how big its region is. Moving a dot does not select it: a click or tap does.
- Or type new coordinates for the selected dot in the Selected box.
- Delete the selected dot with its Delete button, the Delete key, or right-click on a dot.
- The arrow keys nudge the selected dot by a tenth of a degree, or a whole degree with Shift.
- ? opens this guide.
- Ctrl+Z or Undo puts back the last change; Ctrl+Shift+Z or Redo takes it forward again. Esc deselects.
Typing coordinates
Latitude first, then longitude, then an optional name: 48.86, 2.35, Paris. South and west are negative, or write the letters: 33.87 S 151.21 E. Degrees, minutes and seconds work: 51°30′26″N 0°7′39″W. A name can come first too: Lima, -12.05, -77.04.
To add many, open "Paste a list or open a file" and put one place per line, or open a file (or drop it onto the page): CSV, a text list or GeoJSON. A spreadsheet's columns pasted in work, and so does GeoJSON with point features (its order is longitude first, which the box reads automatically). Any line that can't be read is listed, and the rest are added.
Questions, ideas and finding a tool
The simple view is all most maps need, and there is a good deal more behind it. Three ways in, none of which you have to use:
- Questions to try, at the top of "Load an example", set the map up for a question and answer it: the dataset, the tools and the result, with the place it is about selected. Everything they switch on stays on afterwards to explore further.
- Try ideas appear under a real dataset's source line once it loads: two or three next steps that suit that data, one tap each.
- Find a tool: press /, or use the button in the View menu, and type what you want, such as "reach", "globe" or "count". The tool opens where it lives in the panel, with its group switched on.
The View menu
The simple view is the whole basic tool: add places, colour the regions, choose what the map shows, and save or share the result. The View menu at the top adds four groups, each as its own section of the panel.
- Planning asks how well a set of places serves the ground around them: what lies within a distance you type, the farthest point, filling the biggest gap, and what happens if a place closes.
- Data and filters works on numbers that come with the places: keep only a range of values, size the dots by a number, play places that carry a year through time, and the statistics.
- Globe and geometry is about the shape of the regions: the globe, neighbour links, the outer boundary, measuring and routes.
- Experiments holds ideas still being tried: territories, backup regions, evening out the regions and opposite points.
Click a group's heading to fold it away when you are not using it; the browser remembers. Hiding a group turns its tools off. A shared link that uses a group's tools opens that group, and the browser remembers the view you chose.
Real data to try
"Load an example" has eleven real datasets, each saved here from its publisher on the date shown, with its numbers ready for "Colour by":
- World capitals, from Natural Earth's populated places (public domain), with each city's population. Colour by population, or population per area of region to see which capitals are nearest to the most people for the ground they cover.
- Large airports, from OurAirports (public domain): an evenly spread sample of 400 of its 1,154 large airports with scheduled service, kept to 400 so the map stays quick on phones, with elevation. Try Within reach to see how much of the Earth is within a few hours' flight of a big airport.
- Cities of a million or more, from Natural Earth's detailed populated places (public domain): 505 cities with their population. Colour by population per area of region to find the cities that are nearest to the most people for the ground they cover.
- Power stations of 1,000 MW or more, from the World Resources Institute's Global Power Plant Database 1.3.0 (CC BY 4.0): 1,602 stations coloured by their main fuel, with capacity and, where recorded, the year commissioned. Coal leads by far; count them inside the capitals' regions, or keep only hydro to see where the big rivers are dammed.
- Major seaports, from Natural Earth's ports (public domain): the 142 it ranks as the most important of its 1,081. Turn on Within reach, under Planning, to see how much of the ocean is more than a day's sailing from a major port.
- World Heritage Sites, from Wikidata (CC0): 1,182 sites, one point each, with the year each was inscribed. Play it through time to watch the list grow from the first twelve sites in 1978, and notice how unevenly the regions fall: Europe's sites crowd together while one site can be the nearest for a whole ocean. Wikidata is kept by volunteers, so for any one site UNESCO's own list is the authority.
- Volcanoes active since 1900, from the Smithsonian's Global Volcanism Program: the 438 that have erupted since 1900, with the year of the last eruption and the summit elevation. Colour by last eruption to see which belts are busiest now, or by tectonic setting to see that most sit where one plate dives under another.
- Strong earthquakes of magnitude 6.5 or more in the past year, from the U.S. Geological Survey's catalogue (public domain), with magnitude and depth. The regions show which part of the Earth each quake was the nearest to; colour by depth to see the deep quakes under the western Pacific.
- Meteorites seen falling, from NASA's copy of the Meteoritical Society's catalogue (public domain): the 739 meteorites of a kilogram or more that someone watched fall and that were then found, with mass and year. They cluster in Europe and India because that is where people were watching and writing it down, a reminder that a map of records is also a map of who kept them.
- Mountain summits, from Natural Earth's elevation points (public domain): 632 named mountains and spot heights with their height. Size the dots by elevation to see the Himalaya and the Andes stand out.
- Nuclear power stations, from the World Resources Institute's Global Power Plant Database 1.3.0 (CC BY 4.0): 192 stations with their capacity in megawatts and, for about half, the year they were commissioned. Its stations are those operating in 2021, so ones already closed are missing.
- Antarctic stations and camps, from COMNAP's list of Antarctic facilities, version 3.5.0 (COMNAP 2024; free for educational and non-commercial use): 114 stations, camps, refuges and airfields, with the year each was set up, its peak population and its elevation. Near the pole the regions become slivers, and the flat map shows how much it stretches the far south.
The source line under the examples names each dataset's publisher, licence and date.
Counting another dataset in each region
Under Data and filters, "Count" takes any of the real datasets and counts how many of its points fall in each region, that is, how many are nearer to each of your places than to any other. Load the large airports and count the strong earthquakes to see which airport is nearest to the most quakes; load the capitals and count the World Heritage Sites. The count becomes a number like any other: colour by it, size the dots by it, keep only regions with at least a few, or download it with the CSV. Undo removes it.
Keeping only some places
When the regions are coloured by one of your numbers, a "Keep only" box appears under "Colour by" with the lowest and highest values. Narrow the range and the places outside it fade on the map, with a count of how many are left; "Keep these" removes the rest and redraws the regions. Undo brings them back. It is how to ask, for example, which volcanoes have erupted since 2000, which cities have more than five million people, or what the map of meteorites looks like when only the heavy ones count.
Dot size and time
When the places carry numbers, "Dot size" can size each dot by one of them, so a dot's area is in proportion to its value: a city of ten million gets a dot with ten times the area of a city of one million. The regions do not change; only the dots do.
When the places carry a year (the year a station was set up, the year a meteorite fell, a volcano's last eruption), "Play through time" builds the map year by year: each place joins in its year and the regions are redrawn around it, so you can watch, for example, Antarctica being shared out between stations from 1904 to now. Drag the slider to stop at any year. Places without a year sit out until the end, when everything comes back. Undo ends the replay with every place back. Changing anything else mid-replay keeps the places shown at that year; Undo twice brings the rest back.
Colouring by category
Columns of words with a handful of repeated values, such as a fuel, a type or a region, become categories. "Colour by" then gives each category its own colour from a palette chosen to stay distinct for colour-blind readers; the nine most common get their own colour and the rest share grey as "Other", all listed with their counts in the legend. "Keep only" under Data and filters can keep one category. Categories come from the real datasets, from tables you paste (a column with between 2 and 30 different values) and from GeoJSON properties.
Colouring by data
"Colour by" shades each region and its dot by a number instead of giving every place its own colour, with a legend in the corner of the map. Built in: region size; farthest reach, the longest trip anyone in a region makes to its place; isolation, the distance from a place to its nearest other place; number of neighbours; and latitude. Bring your own numbers by pasting or opening a table with a header row that names the latitude and longitude columns: name, lat, lon, population. Every column that is mostly numbers becomes a colouring, both as it is and per area of each region (population per km² of region, for example). The colours run from dark purple (low) to yellow (high) on the viridis scale, which stays readable for colour-blind readers and in greyscale; when the largest value is more than ten times the smallest the scale is logarithmic, so that a few very large values do not leave everything else the same colour, and says so. Places without a value are grey. Your numbers travel in the share link and in both downloads.
What the map can show
- Regions and borders. A border runs exactly halfway between two places, along the great circle that is the same distance from both.
- Names. Each place's name beside its dot, for up to 300 places.
The numbers
Each region's area is computed on a sphere with the Earth's mean radius (6,371 km) and is shown with its share of the Earth's whole surface. Distances are great-circle distances on the same sphere, accurate to within about half a percent of distances on the real, slightly flattened Earth.
Planning
- Within reach. Type a distance: everything farther than that from every place is hatched grey, with a line at the limit, and the panel says what share of the Earth's surface is within reach. It is the question behind siting ambulance stations, lifeboats or radio masts. The distance is in the units you chose and travels in the share link.
- Farthest point ✦. The spot on Earth that is farthest from its nearest place: if the places were shelters, this is where someone would have the longest way to go.
- Fill the biggest gap. Adds a place at the farthest point. Doing it again and again is a quick way to choose sites so nobody is far from one, the problem of placing shelters, clinics or antennas. It is a good answer, not always the best one.
- Add places until everywhere is within reach. With Within reach on, keeps adding a place at the farthest point until nowhere on Earth is farther than your distance from a place, and says how many it took. It stops at 300 new places. The answer is a good one quickly found, not always the fewest possible: finding the true minimum is a famously hard problem.
- If this place closed. With a place selected, the tool shares its region out among the places that would take over, with how much each takes, and says how far its farthest people would then have to go. "Preview on the map" redraws the regions without it.
Statistics
Under Data and filters.
- Region sizes. A histogram on a log scale (each bar a range of sizes, ten times bigger every few bars), the median region, how many times larger the largest region is than the smallest, and a Gini coefficient: 0 when every region is the same size, near 1 when one region holds nearly everything.
- Spacing. The closest and farthest pairs of places, and the typical gap from each place to its nearest neighbour. That gap is compared with the same number of places scattered at random over the globe, simulated on the spot: well below 1 means clustered, near 1 means about random, above 1 means evenly spread. This is the idea of the Clark–Evans ratio, computed on the sphere instead of a flat map.
- Coverage. How far a point anywhere on Earth is from its nearest place: the average, the median and the distance that covers 90% of the planet, measured on an even sample of 40,000 points.
- Geographic midpoint. The average position of the places on the globe. When places surround the Earth evenly their average cancels out and there is no meaningful midpoint; the panel says so.
Globe and geometry
- Globe. The same regions on a globe, where every border is the straight line it really is. It faces the middle of the map; drag it to turn it, and click it to move the map there. The yellow outline is the part of the world the map shows.
- Neighbour links. A line joins two places whose regions share a border. Together they form the Delaunay triangulation, the triangle grid that underlies the regions.
- Outer boundary. The smallest shape on the globe that contains every place (the convex hull). It only exists while all the places fit inside one half of the Earth.
- Measuring. "Measure a distance" turns clicks into a measuring tape: two points anywhere give the great-circle distance and the compass bearing to set off on. On a great circle the heading changes along the way, which is why a flight from London to Los Angeles sets off north-west over Greenland.
- Routes. With a place selected, choose another under "Route to…". The map draws the shortest route over the globe and lists every region it passes through, in order, with how far the route runs in each.
Experiments
Ideas still being tried, kept apart so the rest of the tool stays simple.
- Territories. For splitting places into a few groups by distance, such as areas for teams, depots or volunteers. Choose how many; the places are grouped by k-means clustering on the sphere, each territory's regions join up, borders between territories are drawn firmly, and the panel lists each territory with its places, area and centre. The same places and number always give the same territories. The grouping is by distance alone; real territories also weigh people, roads and borders.
- Backup regions. For seeing which places cover for which. The map is coloured by each point's second-nearest place instead of its nearest: where people would go if their usual place were shut. A place with a large backup region is the fallback for a lot of ground. This is the second-order Voronoi diagram.
- Even out the regions. Each place moves to the centre of its own region, the regions are redrawn, and that repeats a few dozen times (Lloyd's relaxation, on the sphere). The places settle evenly apart and the regions come close to equal; it shows what an even layout of the same number of places would look like.
- Opposite points. A ring where you would come out if you went straight through the centre of the Earth from each place (its antipode). Most land is opposite ocean.
Finding a place
With more than a dozen places on the map, a box above the list finds places by name as you type, ignoring accents and capitals. Enter selects the first match and moves the map to it.
Saving and sharing
Undo, Copy link and Save stay at the foot of the panel however far you scroll. Under Save, the picture saves the map as you see it, as a PNG with the map's credit in the corner. Copy link gives an address that rebuilds the map exactly. The CSV lists every place with its region's area and numbers; the GeoJSON holds the regions as shapes for mapping software. Everything runs in your browser, and nothing you type is sent anywhere. The map pictures come from the base map you choose.
Where is it? (a game)
Where is it? turns these datasets into a game. A real place is named, from capitals to volcanoes to World Heritage Sites; you put a pin where you think it is, and points fall with the distance over the globe. After each guess the map shades the place's region, the ground nearer to it than to any other place of its kind, and says whether your pin landed inside. Play alone, send a link to the same five places so someone else can try them and compare, or start a room and play live with others. There are three ways to play: pin the place, pin anywhere in its region, or look at a shaded region and say whose it is. Today’s five places are the same for everyone on a given day. Under Save, “Play these places” turns the map you have made into a game: every named place on it can come up, and the link carries the list.
Who is nearest? is the same geometry as a contest. Players take turns putting points on the world map, and every city of a million or more goes to whoever has the nearest point, counting for the people who live there. As the points go down, the map draws each one's region. At the end the page compares the average distance the rivals' points leave people with the distance it gets by placing the same number of points as one plan. Or skip the contest: plan the points and compare, alone or in a room where everyone adds and moves the same points.
Credit
This builds on Loren Petrich's Geometry Demo (archived in 2015), which drew spherical Delaunay triangulations, convex hulls and Voronoi diagrams on Google Maps. The geometry uses d3-geo-voronoi by Philippe Rivière and d3 by Mike Bostock; the map uses Leaflet and OpenStreetMap's contributors.