Host Detailed Google Maps with the Map Locations WordPress Plugin
Did you know that you can host an interactive Google map on your WordPress website?
You may already know that you can embed a Google map in any page or post simply by copying the iframe code into an HTML block. That will show the map of any area you’ve designated. However, that’s the limit of the HTML embed method.
If you’d like to take Google map locations to another level on your WordPress site, stick around because I’ll show you exactly how to do it in this article.
But first, what potential uses could you have for hosting a Google map on your site?
For one, you could show the location of your business with a pin. Or, if you’re planning an event, you can display the exact location right on the event page so visitors can easily plan ahead. Let’s say you have a travel website that tells tourists about the best museums to visit in a particular city. Or you could show hiking trails and allow users to enter their own notes about the hike?
You can do all of this with the Map Locations WordPress plugin from Creative Minds. Let’s get started!
Create Unique Maps with the Map Locations Plugin
With the Map Locations plugin, you can place multiple locations on a Google map along with specific info about the location — plus images, video, zip code routes, and searchable markers.
Using Google map integration you can create a store location system using multiple maps, creating an interactive directory of locations. The plugin also allows you to display a unique icon for each location.
In addition, the plugin supports:
- Importing and exporting locations
- Location search by zip code
- Embedding locations using shortcodes
Getting Started with Map Locations WordPress Plugin
The Map Locations plugin features a full menu of settings and hosts an easily-accessible User Guide right on your WordPress admin dashboard. There are several important steps to configure and set up your maps. The first is getting the plugin installed on your site.
Install the Map Locations Plugin
You can find and download the Map Locations plugin on its WordPress.org page. Alternatively, you can search for “cm map locations” in your dashboard under Plugins→Add New.
You can also purchase one of the premium versions of the plugin on the Creative Minds website.
Once installed and activated, you’ll find a new menu item in your left-side dashboard menu called “CM Map Locations.”
The first step in configuring the plugin is to enter your Google Maps API key. If you don’t already have one, let’s go over that now.
Get a Google Maps API Key
First, you’ll need a Google account. Since July 2018, using Google Maps, Routes, and Places data also requires you to have billing information in Google Cloud. However, you’ll have the opportunity to add that info as you create your API key.
Under CM Map Locations→Settings, you’ll find a field for the API key and a link to obtain it, if you don’t already have one.
You’re going to need several API keys to use the Map Locations plugin:
- JavaScript API
- Geolocation API (For some features; requires HTTPS)
- Geocoding API
- Places API
To get these keys, head to the Google Developers page.
Navigate to your project, or create a new one.
Next, navigate to APIs & Services→Library.
Select one API from the list, or use the search bar to find one of the APIs that I mentioned earlier. In the menu popup for the API, click the blue Enable button. Repeat the steps for each API.
Once you have all the APIs enabled, you need to get the key (you only need one). In the sidebar, select Credentials where you’ll see your API key listed. Copy the API key to your clipboard — you’ll paste this into your website in a moment.
First, you need to enable billing for Google Cloud as I mentioned earlier. This is an important step for the Maps Location plugin to function correctly. When logged into your Project, click the hamburger menu at the top left and select Billing. You’ll get a message prompting you to Link a billing account. Click that button and follow the prompts.
Now that you’ve completed all the steps to set up and obtain your Google API Keys, head back over to your WordPress site. In the CM Map Locations settings page, paste in your Google Maps API key and click Save at the bottom. If you like, you can test the configuration using the button on the right.
Adding a Location
The Map Locations plugin creates both an index page for visitors and for users. Once you add a location, it will be listed on those pages. Before you add a location, it’s a good idea to create at least one category for your maps.
This is as simple as adding a new post category, but these are specific to Map Locations. Create as many categories as you like under CM Map Locations→Categories. You can also add default marker icons for each category.
Once you‘ve created your categories, you can add a location. You can use the CM Map Locations menu or click + New in your admin toolbar and choose Location. On the new Location page editor, fill in the Location name and Description fields that pertain to your desired location.
Select the appropriate category from the list, and choose a Marker icon. You may also upload your own icon if you like. Next, you can add any images or videos about your location — this can come in handy for travel guide sites.
Next, scroll down to the Google map displayed on the page. Search for the location or move the map as necessary. When you have your location in sight, select one of the drawing tools and draw your location boundaries on the map.
Scrolling down the page further, you’ll see accurate Latitude, Longitude, and address info for your location filled in automatically. If you like, you can add:
- Phone number
- Website
- Email address
- URL
Click the Save button and your location will be added to the list of locations available on your site. When viewing the location, your visitors will see the neatly formatted info and map.
Access Control
If you’d like to make your maps interactive, you need to configure Access Control in the CM Map Locations menu. There are multiple options available for access.
List Locations
This allows you to designate who can access the locations index and search or filter locations.
View Location
This determines who can display the location’s page.
Create Location
Select who can create locations.
Update Own Location
Select who can update locations.
Roles Allowed to Use Media Library
If a subscriber has the upload_files capability they can see the WordPress Media Library tab when uploading the image for a location. If you want to prevent users from searching your website’s Media Library, make sure you revoke access for the specific roles.
For each category, you can choose from any of the default roles included in WordPress core or roles provided by plugins that designate specific roles.
Additional Features
I’ve covered the basics of setting up and using the Map Locations plugin, but there are many more features available.
Themes
There are up to six themes to choose from to make your locations stand out on your site.
Tiles/Layers
You can add layers on top of your maps to info such as display traffic cycles using OpenStreetMap or another service.
Show User Location
Your users can share their geolocation and display it on the map.
REST/API Support
Use REST API to create locations from other sites or even mobile apps.
Display Templates
There are several display templates available, allowing you to easily create a store locator, list, or point of interest.
Search by Radius
You can search a defined radius from a postal code in any country.
Waze and Google Directions
When you create a new location, Wave and Google direction links are automatically added to the listing.
Pricing for the Map Locations Plugin
You can install and use the Map Locations plugin for free on as many WordPress sites as you like. It includes all the essentials you need to create as many locations as you like, add a description and images, and show each location on its unique map. However, by purchasing premium versions, you get access to more features.
Essential (Pro) Map Location = $39/year
In addition to the essentials listed above, you get display templates, import/export, support for categories, weather information, access control, and more — on one website.
Advanced Map Location + Route Manager Bundle = $69/year
This tier adds Creative Minds’ Route Manager plugin and expands the license to three websites.
Ultimate Map Location + Map Routes + 5 Add-ons = $119/year
The Ultimate tier adds several add-ons and the Map Routes plugin, with a license for up to ten websites.
Each tier provides one year of support and offers a 30-day money-back guarantee.
Display Interactive Maps on Your WordPress Site
The Map Locations plugin gives you the capability to create store location lists, guide tourists through any city, or even let users create and adjust maps to suit their needs. This is one plugin in the large selection of offerings by the development team at Creative Minds.