How to Add an Interactive Map in WordPress

Do you want to add an interactive map in WordPress? Interactive maps allow your users to discover routes, journeys, and itineraries by clicking on markers in the map or moving the mouse around. In this article, we will show you how to easily add an interactive map in WordPress.

interactivemapwp-1-1529435

Method 1: Adding an Interactive Map in WordPress using Google My Maps

This method is simpler and doesn’t require you to install a plugin on your WordPress site.

First, you need to visit Google My Maps website and click on the ‘Create a new map’ button.

createnewmap-8408025

This will bring you to the edit map page. On this screen, you can create your map by selecting a base map, adding points of interest, layers, and more.

editingmap-5065720

Using the toolbar at the top, you can draw lines on the map, add routes, use rulers, and select items.

maptoolbar-5375144

All your map items are saved in layers to the left. You can add, edit, rename, or even delete layers. You can also click on any item in your layer to add description, change title, or add photos / videos.

adddescriptions-6302672

Once you are done editing your map, you need to make it public so that you can use it on your website. You can do this by clicking on the share button in the edit panel.

sharemap-6560260

This will bring up the sharing center where you need to click on ‘Change’ under ‘Who has access’ section.

sharingsettings-6728416

Next, you need to select ‘On – Public on the web’ and then click on the save button.

publicmap-7413245

After that click on ‘Done’ to close sharing center.

On the edit panel click on the menu icon next to map name and then select ‘Embed on my site’.

embedmap-2640646

You will now see the embed code that you need to copy.

embedcode-3016540

Next, head over to the post or page where you want to add your interactive map in WordPress. On the post edit screen, you need to switch to the text editor and paste the map embed code you copied earlier.

pastecode-4320282

You can now save your changes and preview your post to see your interactive map in action.

mappreview-6137328

Method 2: Add an Interactive Map in WordPress Using Plugin

While you can create and add interactive maps using Google Maps, it still lacks certain features and is limited to Google Maps.

If you want to use Open Street Maps, Bing, or other mapping services, then this method is for you.

First thing you need to do is install and activate the Maps Marker Pro plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Maps Marker Pro page to create your interactive map. To start, you need to click on the ‘Add New Layer’ button.

mmp-newlayer-6116400

Next, you need to provide a name for your layer and click publish.

namelayer-1079725

Now that you have created a layer, you are ready to add map markers on it. Go to Maps Marker Pro » Add New Marker page to add your first marker.

addfirstmarker-4921593

First you will need to enter a title for the marker, and then search for the location and select it.

You will also need to place your marker on the layer you created earlier. You can do this by typing the name of the layer in the layers field and select it.

Don’t forget to click on the ‘Publish’ button to save your marker.

Repeat the process to add other markers to the layer.

Once you are done adding markers, you can edit any WordPress post or page where you want to add the map.

On the post edit screen, click on ‘Add Map’ button.

addmap-5974353

This will bring up a popup displaying all your map markers and the layer you created earlier. You need to select the layer and click on insert map button.

selectlayer-2793363

The plugin will add the required shortcode in your post editor area. You can now save or publish your post and preview it to see your interactive map.

previewmap-6367589

You can always edit your main layer to adjust the map size and dimensions.

Maps Marker Pro is a powerful plugin with tons of options like multi-layer maps, custom markers, directions, GPX support, export map in multiple formats, and more. You can explore these options to make your maps even more interactive.