🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 4, 2026

How to Make an Interactive Image Map in WordPress

GravityExtra
How to Make an Interactive Image Map in WordPress

A picture with places on it is one of the clearest ways to explain something: a floor plan with meeting rooms, a campus with buildings, a shop window with products, a country map with dealers or offices. On a website, though, that picture is usually just a flat image. Visitors can look at it, but they cannot point at a room to see who sits there, tap a product to see its price or click a state to find the nearest office. An interactive image map fixes that: every place on the picture becomes something people can hover, tap and open.

This guide explains what an interactive image map is, where it helps and where it does not, the old ways of building one in WordPress and their problems, and how to build a modern one with the GravityExtra Image Map plugin for WordPress: drawing areas, importing an SVG, adding tooltips and popups, floors, zoom, a searchable list and keyboard access.

What an interactive image map is

An image map is a picture with clickable regions. The idea is as old as the web: early HTML already had a way to mark rectangles, circles and polygons on an image and link each one to a page. A modern interactive map goes much further. Regions react when the pointer moves over them, show a tooltip with a name and a short text, open a popup with an image, a video and a button, change colour when they are active, and can be found from a searchable list. The map can be zoomed and moved on a phone, it can have several layers such as the floors of a building, and it works with the keyboard and with screen readers.

There are two kinds of pictures under a map. A photo or a rendered plan (JPG, PNG or WebP) is a background on which you draw the regions yourself. A vector drawing (SVG) already contains shapes, and those shapes can become the regions directly, which is why country, state and floor plan maps are usually built from SVG.

Where an interactive map helps

  • Floor plans and venues: offices, coworking spaces, schools, hospitals, trade show halls, wedding venues. Visitors find a room, see what it offers and book it.
  • Real estate: apartment buildings by floor, plots on a development site, with the status, size and price of each unit.
  • Shoppable images: a styled room or outfit with a spot on each product, its price and a link to buy.
  • Locations and coverage: countries or states where you sell, ship, have dealers or offices, with contact details in the popup.
  • Learning and documentation: the parts of a machine, a diagram of the body, an annotated historical map, a product’s ports and buttons.
  • Events and tourism: a festival site, a trail map, a museum guide with audio or video for each room.

A map helps when the position of things matters. If the content is really a list (opening hours, a price table), a list or a table is better, and a map would only add a step. A good test: would a visitor understand the content faster by seeing where each thing is? If yes, build the map.

The World countries demo map: 176 light blue countries, Brazil highlighted in dark blue with a tooltip that shows its name and text, zoom buttons in the corner and a searchable list of countries on the right
The world demo: hover a country for its tooltip, search or pick it from the list.

The old ways, and why they hurt

Classic HTML image maps

The classic method marks coordinates on an image by hand. The coordinates are in image pixels, so they break when the image is scaled to fit a phone, and fixing that needs extra scripts. There are no hover styles, no tooltips beyond the browser’s plain title text, no popups and no zoom, and getting the coordinates right for a polygon means a lot of trial and error with a separate tool.

Hand-written SVG and JavaScript

A developer can embed an SVG drawing, add an id to each shape and write JavaScript for the hover, the tooltip and the click. It works, but every change of text or link means editing code, the person who knows the code is often not the person who owns the content, and accessibility (keyboard focus, names for screen readers, closing popups with Escape) is usually left out. Embedding raw SVG from an outside source can also bring scripts with it if it is not cleaned.

Hosted map services

Online map builders give you an embed code. The map then lives on someone else’s server, loads their scripts and fonts on your pages, often adds their branding, and stops working when the subscription ends. Your content is no longer in WordPress, so it is not part of your backups, your revisions or your editors’ normal workflow.

What to look for in an image map plugin

  • A visual editor where you draw rectangles, circles, ovals, polygons and spots on the picture, and move and resize them with the mouse.
  • SVG import that turns the shapes of a drawing into regions automatically, and cleans the file so it can only draw.
  • Tooltips and popups with real content: formatted text, an image, a video and a button.
  • Click actions: open a link, switch to another layer, or let a developer react with a JavaScript event.
  • Several layers with a switcher, for floors and before-and-after views.
  • Zoom and pan that work with a mouse, a trackpad, a finger and the keyboard, and a layout that suits phones.
  • A list of places with search, for people who know the name but not the position.
  • Styles for the default, hover and active states, for the whole map and per region.
  • Accessibility: every region reachable and named, popups that behave like dialogs.
  • Everything bundled and served from your site, with the data stored in WordPress, plus export and import as a file.

Build a map with GravityExtra Image Map

1. Install the plugin and start a map

Install and activate the plugin, then enter your license key under Image Maps → Settings. Go to Image Maps → Add New Map and give the map a title, or open Demo maps to start from a ready world map, US states map, two-floor office or product room. Demo maps are normal maps you can change completely.

2. Add the picture

On the Layers tab, choose a background image from the Media Library. When the map is still empty, the editor offers to use the image size as the map size, so your regions line up with the picture on every screen. If your picture is an SVG drawing, use Import an SVG instead: every path, polygon, rectangle, circle and oval becomes a region named after its title or id, text stays as a background, and anything that is not a plain drawing is removed on your server.

3. Draw the regions

Pick a tool in the toolbar: rectangle, circle, oval, polygon or spot. Drag to draw shapes, click point by point for a polygon and double-click to close it, or click once to place a spot. Switch to Select / move to drag a region, pull its handles to resize it, or nudge it with the arrow keys. Undo and redo keep the last 80 steps, so you can try things freely.

4. Write the content

Select a region and fill in the Area tab: the title, an optional group that sorts the list, the text, an image, a video link (YouTube, Vimeo or a video file) and a button with its link. Choose whether the region shows a tooltip, opens a popup window or shows nothing. Videos load only when a visitor opens that region, so the page stays light.

The Product spots demo: a drawn living room with round plus spots on the sofa, the lamp and the table and a heart spot on the plant, each spot with a soft pulse ring
Pulsing spots with icons for products in a picture.

5. Choose what a click does

In the Action section, a region can open a link (on your site or elsewhere, in the same tab or a new one), switch to another layer, or fire a JavaScript event with a name you choose. Developers listen for the event on the map element and can open a booking form, send an analytics event or filter a product grid next to the map.

6. Add spots with icons and a pulse

Spots are markers on a single point, ideal for products in a photo or points of interest on a plan. Choose one of twelve icons or upload your own pin image, set the size and colour, and switch on the pulse animation to catch the eye. Spots keep the same size on screen when the map is zoomed, and the pulse is turned off automatically for visitors who prefer reduced motion.

7. Add floors or layers

Add a layer for each floor or view, each with its own picture and regions. Visitors switch between them with tabs above the map, the list of places follows the current layer, and a region such as the stairs can switch to the next floor when it is clicked.

8. Style the states

On the Map tab, set the fill, opacity, border colour and border width for the default, hover and active states of all regions, and the defaults for spots. Any region can override them, for example to colour sold apartments red or to highlight one country. You also choose whether tooltips open on hover or only on click, whether zoom is available, where the list of places goes, and the width below which the phone layout starts.

9. Put the map on a page

Add the Image Map block to any page or post and pick the map in the block settings; the editor shows a live preview, and the block supports wide and full width. Each map screen also shows a shortcode you can paste into widgets or page builder text elements, with options for the starting layer and the list of places.

Phones, keyboards and screen readers

On a phone, the list of places moves under the map, a tap opens the content in a sheet at the bottom of the screen, two fingers zoom and one finger moves the zoomed map. On a computer, every region and spot can be reached with the Tab key and opened with Enter; Escape closes what is open, the popup keeps the keyboard inside until it is closed, and the layer tabs work with the arrow keys. Screen readers hear each region’s name and its text, and get a short message when a search finds results or the zoom changes.

Speed, privacy and safety

The map is printed by your server as an inline drawing, so it appears with the page and search engines can read the names in it. The plugin’s script and style load only on pages that show a map, and nothing is loaded from another server: icons and demo maps are part of the plugin. Video players from YouTube or Vimeo load only when a visitor opens a region with a video, and YouTube uses its privacy-enhanced domain. Everything editors type and every imported file is checked on the server before it is stored, so a map cannot carry scripts.

Moving maps between sites

Every map can be downloaded as a JSON file with its layers, regions, content and styles, and imported on another site as a new draft. This is useful for staging sites, for agencies that reuse a map for several clients, and as a backup before big changes. Maps can also be duplicated with one click.

Tips for a map people enjoy

  • Keep tooltips short: a name and one or two lines. Put longer content, images and videos in popups.
  • Use colour for meaning, such as available and sold, and keep the hover colour clearly different from the default.
  • Give every region a clear title; it is what the list, search and screen readers use.
  • Use groups to sort long lists, such as regions of a country or wings of a building.
  • Check the map on a phone. If regions are small, switch on zoom or show the list so people can pick by name.
  • For SVG imports, give shapes ids or titles in your design tool before exporting; they become the region names.

Get started

Interactive maps turn a picture into a way to explore. With the GravityExtra Image Map plugin you draw regions or import an SVG, add tooltips, popups, spots and floors, and publish the map with a block, all inside WordPress and without code. The documentation walks through every setting step by step. Start from a demo map today and see your first interactive map live in a few minutes.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr