Do I need an API key?
No. MapPress uses free Leaflet maps with OpenFreeMap tiles by default, with no API key or billing account. You only need a key if you choose Google Maps, or the Mapbox or LocationIQ services. See Picking a Mapping API.
How can I get a Google API key and secure it?
See How to Get a Google Maps API Key.
If Google warns that your API key is unsecured, there’s no need to worry. The key is visible on any page that shows a Google map; that’s how Google Maps works, with any plugin. To stop it being used on other sites, follow Google’s instructions to restrict it to your website.
Map error or blank map
Most display problems are caused by a conflict with the theme or another plugin:
- Minify or optimizer plugins
These can break the MapPress JavaScript and CSS. Most have a setting to exclude files; excludemaps.googleapis.com,index_mappress.js,index_mappress_admin.js,leaflet.js,maplibre-gl.js,leaflet-maplibre-gl.jsandmappress.css. - Cookie consent plugins
These may show a blank map until visitors accept cookies, or block the Leaflet scripts entirely; the browser console (F12) then shows errors like “L is undefined” or “Leaflet not loaded”. MapPress itself sets no cookies and doesn’t track visitors, and with OpenFreeMap tiles it doesn’t load Google or Mapbox. If your consent plugin is blocking MapPress, check its settings for a way to exclude the MapPress scripts. MapPress works with Complianz automatically, with no setup. - Theme missing wp_footer()
WordPress loads scripts through the wp_footer() call. Some custom themes leave it out; add it to the theme’s footer template.
Troubleshooting conflicts
To find a conflict:
- Turn on Compatibility mode in the MapPress settings. It shows maps in an iframe, which avoids most conflicts.
- Temporarily deactivate all other plugins. If maps now work, reactivate them one at a time to find the one causing the problem.
- Temporarily switch to a default theme, such as a recent Twenty-something theme. If maps work, the theme is the cause. Themes that include their own maps often have a setting to stop loading the Google Maps API.
Google API errors
The map may show an error instead of the map:
- Google Maps API key missing
Enter a Google API key in the MapPress settings. - Google Maps API loaded multiple times
Another plugin or the theme is also loading Google Maps. Check the Google API setting (Miscellaneous section) to stop other plugins loading it twice, or turn on Compatibility mode. If that doesn’t help, ask the other plugin’s or theme’s author how to turn off its Google Maps. - Google Maps API not loaded
Usually a theme or plugin conflict. See Map error or blank map.
Alert “Google is deprecating the Places API”
Google has retired the original version of its Places API, which MapPress uses for address search and autocomplete, and replaced it with Places API (New). Your Google project needs the new one enabled for search to keep working.
Only logged-in administrators see this message; visitors never do. Your maps are not affected: markers, directions, KML files and everything else keep working. Only the search box and address lookup are affected.
What to do:
- Open the link in the message. It goes straight to the Places API (New) page for your Google project.
- Click Enable.
- Wait two or three minutes for Google to apply it, then reload your site.
There’s nothing to change in MapPress. For costs, see Google’s Maps Platform pricing.
Geocoding custom fields with Google
When MapPress generates maps from custom fields, it geocodes the addresses on your server, not in the visitor’s browser. If your Google API key is restricted to your website (HTTP referrers), Google rejects those server requests.
Create a second key restricted by your server’s IP address instead, enable the Geocoding API for it, and enter it in the Google Server API key setting. Visitors never see this key. See Google’s FAQ for how to enable APIs.
Address not found
MapPress uses a geocoder to turn addresses into map coordinates. The free Nominatim geocoder is often only accurate to the street, and can miss some addresses. If an address can’t be found, switch the Geocoder setting to Google, Mapbox or LocationIQ. See Geocoding.
KML or GPX file errors
MapPress reads KML and GPX files in the visitor’s browser. If a file doesn’t appear, it’s usually one of these:
- The file is on another website. Browsers block pages from reading files on other sites (a security feature called CORS). Upload the file to your own site, for example to the Media Library, and use that URL.
- It’s a KMZ file. KMZ files aren’t supported on Leaflet maps. Convert the file to KML and upload that.
- The link uses http on an https site. MapPress switches it to https automatically, so the file must also be available over https.
On Google maps, files hosted on other sites, KMZ files and links without a .kml extension (such as Google My Maps links) still go through Google’s KML layer, which Google is retiring in May 2027. To keep them working, save them as .kml files and upload them to your own site. See KML and GPX Files.
How do I show a “near me” map?
Add center="user" to the shortcode to center the map on the visitor’s location, for example [mashup center="user"]. This only works on sites that use https. See the live demo.
How do I move my maps to another site?
WordPress’s own export doesn’t include maps. Copy the MapPress database table along with your posts. See Backing Up and Copying MapPress Data.
Will I lose my maps when I upgrade to MapPress Pro?
No. All your maps keep working, and you get the Pro features on top.
What happens if I cancel my Pro subscription?
The plugin keeps working if you cancel. Your license key is what enables automatic updates, so you won’t receive new versions until you renew.
How do I cancel a PayPal subscription?
Cancel from your MapPress account, or from your PayPal account’s Payments Overview.
Translating MapPress
See Translating MapPress.
Still stuck?
Use the contact form and include as much detail as you can: what you’ve tried, steps to reproduce the problem, a URL that shows it, and screenshots.
