Location Map

Updated

Usage

The Location Map block shows your locations as pins on an interactive map, with a card for each one. Visitors can filter by region or type if you add filters.

It works with Google Maps or OpenStreetMap. Turn on Enable Mapping and pick a map provider in the Customizer first.

Settings

  • What to Display — all locations, one region or type, or locations you pick by hand
  • Filtering — region or type filter buttons for visitors
  • Columns, Card Style, Card Headlines, Text Align, Excerpt Style — how the location cards look

Tips

  • Set a map pin on each location so its marker lands in the right spot.
  • If visitors must accept cookies before a Google map loads, set the GDPR Map Prompt in the Customizer.

Settings

Location Map

Data · Data

What to Display setting in the block editor sidebar
What to Display

Show every location, only certain Regions or Types, or locations you pick by hand.

  • Show All Locations
  • By Region
  • By Type
  • Handpicked
Handpicked Locations setting in the block editor sidebar
Handpicked LocationsShown when Display is set to Handpicked.

Appears when What to Display is Handpicked.

Type setting in the block editor sidebar
TypeOnly appears when Display is set to By Type.

Appears when What to Display is By Type.

Region setting in the block editor sidebar
RegionVisible when Display is set to By Region.

Appears when What to Display is By Region.

Filtering setting in the block editor sidebar
Filtering

Adds filter buttons visitors can click to narrow the map by Region or Type.

  • By Region
  • By Type
  • Disableddefault
Region Filters setting in the block editor sidebar
Region FiltersAvailable when Filtering is set to By Region.

Which Regions get a filter button. Leave blank for all.

Type Filters setting in the block editor sidebar
Type FiltersShown when Filtering is set to By Type.

Which Types get a filter button.

Appearance · Appearance

Columns setting in the block editor sidebar
Columns
  • 1
  • 2
  • 3
  • 4default
  • 5
  • 6
  • 7
Card Style setting in the block editor sidebar
Card Style
  • Border
  • Card
  • Seamless
Image Aspect Ratio setting in the block editor sidebar
Image Aspect RatioAvailable when Show Featured Image is enabled

Crops card images to one shape. None keeps each image's original shape.

  • None
  • 5:1
  • 4:1
  • 3:1
  • 2:1
  • 16:9default
  • 4:3
  • 1:1
  • 1:2
  • 9:16
Card Headlines setting in the block editor sidebar
Card Headlines

Text style for location names on the cards.

  • h2
  • h3
  • h4default
  • h5
  • h6
  • p
  • strong
Text Align setting in the block editor sidebar
Text Align

Text alignment on the location cards.

  • Leftdefault
  • Center
  • Right
Excerpt Style setting in the block editor sidebar
Excerpt Style

Size of the excerpt on each card, or Hidden.

  • Base
  • Smalldefault
  • X-Small
  • Hidden
Link to Post setting in the block editor sidebar
Link to Post

Adds a link on each card to that location's page.