EasyRegions – Store Locator Maps

Description

EasyRegions adds a clickable map of your stores to any page. It works with WP Store Locator: every store you add there appears on the map, with no extra setup.

👉 Try the live demo · Documentation

The map starts at the world, or at your country when all your stores are in one. Every country and state is shaded by how many stores it has. Click a country to see its states, and click a state to see its stores below the map, with their address and a link to the store page.

What you get

  • A world map and a state map for more than 200 countries, the United States, Canada, Australia and the countries of Europe included.
  • Regions shaded in five steps by store count, with a legend.
  • Click a state to list its stores below the map, in up to four columns, 20 at a time.
  • A breadcrumb (World › United States › California) to go back up.
  • Stores get their country and state from their coordinates, automatically. Imports and edits are picked up by themselves.
  • Your own colors, or your theme’s: the colors are CSS custom properties.
  • Shows one store category, or several, per map.
  • A block and a shortcode, [wpsl_region_map].
  • Region pages: every country and state gets its own address, such as /stores/australia/new-south-wales/, with its own title, and goes in the sitemap.

Built for every visitor

  • Every region with stores is a real link. Without JavaScript the map still works, and the links can be shared, bookmarked and found by search engines.
  • Keyboard and screen reader friendly: regions can be reached with Tab, each says its name and number of stores, and the list below the map offers the same choices.
  • No map service, API key or tracking. The maps are part of the plugin, so it never contacts another server.
  • Works with WPML: each store is counted once.

Map data

The maps are made from open data, simplified for the web. They are not the original files.

  • Country and state boundaries: Natural Earth (public domain).
  • United States states: US Census Bureau cartographic boundary files (public domain).
  • Russia, Turkey and Kazakhstan are split between the Europe and Asia maps along their own state borders, from the same Natural Earth data: European Russia is the Northwestern, Central and Volga federal districts (with the Southern and North Caucasian ones), European Turkey the four provinces of Thrace, European Kazakhstan West Kazakhstan.

Country flags: circle-flags by HatScripts (MIT), see assets/flags/LICENSE.md.

Sample stores: names and addresses from Wikidata, public domain (CC0), see sample/LICENSE.txt.

See data/1/2026.1/LICENSE-DATA.txt in the plugin folder, and license.txt for the licences of everything the plugin includes.

Source code

Nothing in the plugin is minified except the block’s editor script, assets/dist/blocks/region-map/index.js. Its source is assets/src/blocks/region-map/index.js in the plugin folder; npm install and npm run build (see package.json) build it with @wordpress/scripts.

Screenshots

Blocks

This plugin provides 1 block.

  • Region Map An interactive map of your stores, shaded by how many stores each region has.

Installation

  1. Install and activate WP Store Locator, then this plugin.
  2. Your stores are tagged with their country and state by themselves, while you’re in the dashboard or in the background. A notice says how many are left, and Store Locator › Region Maps shows the details.
  3. Add the Region Map block to a page, or the [wpsl_region_map] shortcode.

FAQ

Which options does the shortcode have?

  • region="US" starts the map at a country, at a state such as US-CA, or at world. Without it, the map starts at the country of your stores, or at the world when they are in more than one.
  • region="europe" starts the map at a continent: europe, africa, asia, north-america, south-america or oceania. region="eu" shows the 27 countries of the European Union. The map shows only those countries and stays inside them. A country that lies on two continents, like Russia or Turkey, shows only the part on that continent, and counts the stores of its states on that side: Istanbul’s stores are in Europe, Ankara’s in Asia.
  • category="shops,outlets" shows only the stores in these store categories (their slugs).
  • empty="hide" hides the regions without stores, instead of showing them muted.
  • labels="hide" leaves the store counts off the regions. By default each region with stores shows its count: on a country’s map a small state gets a smaller number, while on a continent map a country too small for its number shows it on hover and focus. The world map shows no counts, as only its largest countries would have room for one. Without the attribute the map follows the “Store counts on the map” setting.
  • height="400" caps this map’s height in pixels, from 200 to 1200; a wide map gets narrower to stay within it. Without it the map follows the “Maximum height of the map” setting.
  • flags="hide" leaves out the country flags before the country names in the lists, the breadcrumb and the heading. Without it the map follows the “Country flags” setting.
  • shading="gradient" gives every store count its own shade, from the lightest to the region color, instead of five steps. Without it the map follows the Shading setting.
  • template="simple" shows each store with its name, address and a link. The default, detailed, adds the phone number, email address and Directions and Website buttons.
  • icons="false" leaves out the icons in the detailed cards. Without it they follow “Use icons?” in WP Store Locator’s Appearance settings; icons="true" always shows them.

The block has the same options in its sidebar.

Can every country and state have its own address?

Yes. Tick “Create region pages?” under Store Locator › Region Maps › Settings › Region pages, and pick the page with your map. Every level of that map then has a clean address below the page, such as /stores/australia/new-south-wales/, with the region’s name in the page title, its own canonical link (also with Yoast SEO and Rank Math), and a place in WordPress’s sitemap. A map that starts at one country starts its addresses at the state: /us-stores/california/. Old links with ?wpsl_region= move to the new address. It needs pretty permalinks; maps on other pages keep their ?wpsl_region= links.

Can I put two maps on one page?

Yes. Each map keeps its own level, also in the URL.

A store is not on the map. Why?

Store Locator › Region Maps lists every store without a region and why: it has no coordinates, or its coordinates are outside every country. Fix the coordinates in the store’s settings and it is tagged again by itself.

How do I change the colors?

Under Store Locator › Region Maps › Settings. Themes can also set --wpsl-region-1 to --wpsl-region-5, --wpsl-region-empty, --wpsl-region-active and --wpsl-region-active-border on .wpsl-region-map.

Can the map be wider or narrower?

Yes, under Store Locator › Region Maps › Settings: the map is at most 600 px tall by default, centred above the stores. It keeps its shape, so lowering the height makes a wide map narrower too, and a tall map like Chile gets a narrow box. Otherwise it is as wide as the page’s content column. Themes can change the height with --wpsl-region-map-height and cap the width with --wpsl-region-map-width, for example .wpsl-region-map { --wpsl-region-map-width: 640px; }.

My theme prints the map from a template, and it has no colors.

The plugin loads its stylesheet in the page head when the page’s content has the block or the shortcode. A map printed by a theme template, a page builder or a widget loads it later, and some plugins drop late stylesheets. Tell the plugin which pages have a map:

add_filter( 'wpsl_region_maps_needs_assets', function ( $needed ) { return $needed || is_page( 'stores' ); } );

Can I see the map before my own stores are in?

Yes. Under Store Locator › Region Maps › Settings › Sample data, add 500 museums, libraries, theatres and universities on every continent, with categories, phone numbers and opening hours. Their names and addresses are real, from Wikidata; the phone numbers and opening hours are made up. The same screen removes exactly these again, and uninstalling the plugin removes them too. A sample store you give another name or address becomes your own store and stays.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“EasyRegions – Store Locator Maps” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • First release.