GeoSlides
Market: United States
Browse templates
Home/ Guides/ How to Label a Map in PowerPoint: Type Inside the Shape

PowerPoint and Keynote·6 min read

How to Label a Map in PowerPoint: Type Inside the Shape

Labeling a map is a placement problem, not a font problem. Type the name into the shape so it belongs to the area, center it, and then measure whether the name is narrower than the shape — because on a national map most of them are not.

A slate gray map of the United States with every state drawn as a separate editable shape
Fifty-three separate shapes on one slide. Each can hold its own name, and each name moves with its state.

Labeling a map in PowerPoint comes down to one question: does the name belong to the area, or does it float above it? Select the shape, press F2, type — the label becomes part of the object and moves, resizes and deletes with it. Draw a text box on top instead, and the two are strangers from the first drag.

The second half of the answer decides whether the slide looks finished. On the state map the median shape is 0.668 inches wide, and ten of the 53 cannot hold their own name even at 6 points. Type into the shape when the name fits; when it does not, move the label out and connect it with a line.

Three ways a name gets onto an area

ApproachWhere the text livesWhat breaks when the deck is editedUse it when
Type into the shapeThe shape's own text bodyNothing — the name is the areaThe name fits inside the shape
Floating text boxA separate object above the mapThe map moves, the label stays behindNever, on a map you will edit again
Connector and calloutA text box plus a line anchored to the shapeThe line follows the shape; the box only does if you group themThe area is too small to hold text
Number in the shape, names in a keyThe shape's text body, one characterNumbers behave exactly like shape textMany tiny areas, a dozen of them matter

Why a floating text box is the first thing to break

A text box has no relationship to the shape underneath it. It has no idea it is meant to sit over Ohio, so every operation that moves the map moves the label out of position: drag the map left to make room for a legend and the labels stay where they were. Resize the map and the states shrink while the labels keep their size, because a text box outside the group is untouched by group scaling. It also defaults to a white fill in some themes, painting a white brick over the color you just chose.

Open Home → Select → Selection Pane: a clean map lists one entry per area, and a map with eight floating labels lists eight extra, none of them inside the group that moves.

Typing into the shape, and the one setting that matters

If the map arrived grouped, ungroup it once: Shape Format → Arrange → Ungroup. Grouping is the right state to store a map in and the wrong state to label it in. Then, per area:

  1. Click the shape once, so handles appear.
  2. Press F2, or right-click → Edit Text. A second slow click works too, but a fast double-click on a grouped map attacks the group.
  3. Type the name.
  4. Home → Paragraph → Center.
  5. Right-click → Format Shape → Text Options → Text Box → Vertical alignment: Middle.

Steps 4 and 5 are not cosmetic. These shapes ship with zero internal insets and default top-left alignment, so a name typed into Rhode Island begins at the top-left corner of Rhode Island's bounding box and runs outward.

A 6-point label with a white outline reads better than the same label at 8 points without one: Shape Format → Text Fill → Text Outline → white, 1 pt. A halo costs no space, and space is what you are short of.

The bounding box is not the area

Once the paragraph is centered, the text centers in the bounding box — the smallest rectangle containing the shape — and the bounding box is not the state. On a compact state the difference is a couple of hundredths of an inch. On a panhandle, an island chain or two peninsulas, it is visible.

Across the 53 shapes on the state slide, the median distance between an area's centroid and the center of its bounding box is 0.027 inches. Sixteen exceed 0.05 inches, and seven exceed a tenth:

StateText anchor sits this far from the area's centroid
Florida0.199 in
Alaska0.153 in
Idaho0.148 in
Hawaii0.143 in
Oklahoma0.135 in
Michigan0.122 in

Florida is the clearest case: its bounding box runs from the Perdido River to the Keys, so the center lands in the Gulf west of the peninsula. Hawaii's centroid falls in open water between islands, the one place a label must never sit.

Neither needs a drawn box. The text frame inside the shape has margins: Format Shape → Text Options → Text Box → Left margin and Top margin, in inches. Type 0.2 into the left margin and a centered name shifts right by about a tenth of an inch while the shape stays put — the only placement control that keeps a label attached to its area.

Measure the name against the shape

The label has a width and the shape has a width, and both are in inches on the same slide. A .pptx is a zip, so the shape widths can be read without opening PowerPoint:

import re, zipfile

EMU_PER_INCH = 914400

with zipfile.ZipFile("us-states--slate.pptx") as z:
    xml = z.read("ppt/slides/slide1.xml").decode("utf-8")

shapes = []
for sp in re.findall(r"<p:sp>.*?</p:sp>", xml, re.S):
    if "custGeom" not in sp:              # skips the four cover text boxes
        continue
    name = re.search(r'name="([^"]*)"', sp).group(1)
    cx, cy = re.search(r'<a:ext cx="(\d+)" cy="(\d+)"', sp).groups()
    shapes.append((name, int(cx) / EMU_PER_INCH, int(cy) / EMU_PER_INCH))

for name, w, h in sorted(shapes, key=lambda s: s[1])[:6]:
    print(f"{name:26s} {w:6.3f} in wide  {h:5.3f} in tall")
print(len(shapes), "state shapes")

It prints District of Columbia 0.024 in wide, then Rhode Island at 0.087, the Virgin Islands at 0.107, Delaware at 0.117, New Jersey at 0.149 and New Hampshire at 0.184, followed by 53 state shapes.

For the text side you need the string's advance width in the font you are using. Measured from Arial's hmtx table, "Rhode Island" is 0.491 inches at 6 points and 0.655 at 8. If you would rather not read font tables, the field estimate is half an em per character — 12 characters at 6 points gives 0.5 inches, within 2 percent.

ShapeWidth on the slideIts name at 6 ptType size that would fit
District of Columbia0.024 in0.722 in0.2 pt
Rhode Island0.087 in0.491 in1.1 pt
U.S. Virgin Islands0.107 in1.024 in0.6 pt
Delaware0.117 in0.352 in2.0 pt
New Jersey0.149 in0.435 in2.1 pt
New Hampshire0.184 in0.593 in1.9 pt
Vermont0.190 in0.315 in3.6 pt
Connecticut0.194 in0.440 in2.6 pt

Ten of the 53 shapes are narrower than their own name at 6 points. At 8 points it is sixteen, at 10 points twenty-one — and that is the reason a map which looks fine while you type looks broken from the back of a room.

The ten names that do not fit

Four honest ways out:

  • Abbreviate. RI, CT, DE, DC fit at 9 points where the full name never will. Fine when the legend says so once.
  • Move the label out and connect it. Insert → Shapes → Elbow Connector, drag from the label to the shape, and drop on one of the green dots that appear on hover. The connector is now attached and stretches with the shape when the map is resized; a plain line will not.
  • Number the shape, name it in a key. 1 inside the shape, ten names beside the map. The only approach that still works when areas are smaller than the type.
  • Pull the region out into an inset. An enlarged Northeast panel, drawn once at the size the labels need. Costs slide space, buys legibility for nine states.

Group each label with its connector — Shape Format → Arrange → Group — or the next nudge of the map separates them. Do not group the labels with the shapes: one group takes one fill command, and you will recolor the text along with the map.

At county scale, label a subset and say so

The county slide holds 3,225 freeform shapes. The median county is 0.062 inches wide; the widest, Aleutians West Census Area, is 0.472. Not one of the 3,225 can hold its full name at 6 points, and only 20 can hold the bare name without the word "County", because 3,213 of them are under 0.3 inches.

That settles the design question. A county map is not labeled exhaustively; it is labeled where a number is being argued about. Type in the dozen counties that carry the story and let the fill do the rest — the county map is built to be shaded rather than annotated, and picking the ramp earns more than labeling 3,225 areas would.

A monochrome map of the United States with all 3,225 county boundaries drawn as separate outlines
At 3,225 areas the median county is 0.062 inches wide. Labels here are a selection, not a layer.
Can I add labels the way a chart adds data labels?
No. A map built from shapes has no data series, so `Chart Elements` → `Data Labels` does not exist on it. There is no bulk-label command either: typing with several shapes selected writes into the last one only. The repeatable path is generating the deck from a table, not pasting names one at a time.
How do I change the font on every label at once?
Select the shapes, then set the font once with `Home` → `Font`; it applies to the text body of each selected shape. Position stays per-shape, which is why centering comes first and nudging second.
What size should a label be for a projector?
9 to 10 points on a 13.333-inch slide reads from the back of a room. Below 8 points the label exists for whoever edits the file, not the audience; at 6 points it is a citation.
Why did my label shrink when I resized the map?
`Format Shape` → `Text Options` → `Text Box` was set to shrink text on overflow. Turn it off, or the type gets smaller every time the shape does — the opposite of what a label needs.
An editorial-style map of the United States with each state shaded separately and room for labels
One name per shape, centered, with a white halo and nothing else on the slide. At state level that is the whole technique.

Start from shapes a label can live in

Fifty states plus D.C., Puerto Rico and the Virgin Islands, each one a separate shape with its own text body, so a name typed into Texas stays in Texas. $9.99, one-time download.

See the state map

The final test takes ten seconds: select the whole map and drag it. If every name travels with its state, the labels were placed correctly. If one is still sitting where the map used to be, that one is a text box — and it will do the same thing in front of an audience.

Questions

Can I add labels the way a chart adds data labels?
No. A map built from shapes has no data series, so `Chart Elements` → `Data Labels` does not exist on it. There is no bulk-label command either: typing with several shapes selected writes into the last one only. The repeatable path is generating the deck from a table, not pasting names one at a time.
How do I change the font on every label at once?
Select the shapes, then set the font once with `Home` → `Font`; it applies to the text body of each selected shape. Position stays per-shape, which is why centering comes first and nudging second.
What size should a label be for a projector?
9 to 10 points on a 13.333-inch slide reads from the back of a room. Below 8 points the label exists for whoever edits the file, not the audience; at 6 points it is a citation.
Why did my label shrink when I resized the map?
`Format Shape` → `Text Options` → `Text Box` was set to shrink text on overflow. Turn it off, or the type gets smaller every time the shape does — the opposite of what a label needs.

Written in-house. Boundary counts are checked against the published files, and every figure on this page can be reproduced from the source named in it.

Keep reading