MapPress FAQ

What Happens to my Maps When I Upgrade to Pro?

Don’t worry – your maps will continue to work.  You’ll gain all the new Pro features but your existing maps are fully compatible.

AJAX error or map doesn’t load

This is usually caused by the theme or another plugin
First, deactivate ALL plugins and switch to a standard theme (like 2015).  Then check the map again.  If the map is now visible, reactivate your theme and plugins to find the conflict.  These are the most common problems:

  1. Theme is missing wp_footer() call
    See here for details: http://codex.wordpress.org/Function_Reference/wp_footer
  2. Theme or plugin loads obsolete version of jQuery 
    To find the jQuery version: in the browser’s javascript console type ‘jQuery.fn.jquery’.  The minimum version is 1.7 (released 4 years ago).  If your version is lower you’ll need to update your theme or plugin to load a current version.
  3. “Minifier” plugins
    Exclude the MapPress files (mappress.min.js) or Google URL (maps.googleapis.com) from your minifier plugin.
  4. Theme or plugin loads the Google API
    Google only allows the API to be loaded once.  If it’s loaded multiple times you will see an error in the browser’s javascript console.  You’ll need to deactivate the maps in your theme or plugin that is loading it.

Maps in hidden elements: map is blank or only a corner of the map displays

This is an issue with the Google Maps API.  Maps do not display properly when they are inside an element that is initially hidden, such as a hidden tab, slider, accordion, etc.  MapPress includes a workaround for jQuery UI TabsFor other libraries or controls, you’ll need to implement your own solution using Javascript. 

When a hidden element is displayed, you can redraw the map by calling its resize() method.  For example to redraw the first map on the screen use:
mapp0.resize();

This example redraws maps inside elements with class ‘mycontrol’ when the element is clicked.  Note that setTimeout is only needed if there is an animation (such as sliding into place) that must complete before the map is resized:

jQuery(document).ready(function() {
    jQuery('.mycontrol').on('click', function() {
        jQuery(this).find('.mapp-canvas').each(function() {
            var id = jQuery(this).attr('id');
            var map = window[id];
            setTimeout(function() {
                map.resize();
            }, 350);
        });
    });
});

Map is visible, but POIs are missing and the map can’t be moved

This is caused by a bug in the “rocket loader” from Cloudflare.com.  To disable rocket loader, login to your cloudflare account, then go to Settings > Performance Settings, and set the ‘Rocket Loader’ setting to ‘off':

POIs are in the Ocean near Africa

This happens when a POI can’t be geocoded.  Either the POI location is invalid or you are over your Google query limit.  See the documentation for information about query limits.

If you are generating maps from custom fields, the plugin will write any error messages to a custom field called ‘mappress_errors’ when a post is saved or published.  If you creating maps using PHP, the geocode() function returns a WP_Error object with any messages.

Can’t change marker icons

MapPress Pro is required to change the map icons.  

Map exists but doesn’t appear in the post

Check that a shortcode is present in the post.  The documentation shows you how to do it step by step.

Post displays [mappress] shortcode instead of the map

This indicates MapPress has been deactivated or it can occur because of a very old WordPress bug: each shortcode must be on a separate line.  Edit the post and check that there is a carriage return between shortcodes and any surrounding text.

InfoWindows have thick black shadows

This is a bug in Google Maps that affects Internet Explorer when the browser zoom is anything other than 100%.  The only fix is to set the zoom using the IE menu “view –> zoom”.

How can a marker be moved?

In the map editor just drag the marker to the correct position.

General troubleshooting tips

These simple steps will fix most issues:

  1. Disable all other other plugins and switch to a standard theme
    Most conflicts occur because of theme or plugin conflicts.  If disabling them corrects the problem, re-activate until you find the conflict. 
  2. Out of memory
    By default WordPress allocates barely enough memory to run a blog without plugins.  There are several plugins to check free memory (for example: http://wordpress.org/extend/plugins/wp-memory-usage/).   If memory is low increase the blog’s memory.

Translating MapPress

WordPress plugin translations are created using the POEdit utility. MapPress translation files are stored in the languages directory of the plugin. 

Creating a New Translation

  1. Download the latest POEdit
  2. Run POEdit and open the master file mappress.pot or mappress.po from the languages directory of the MapPress plugin
  3. Use the menu File->Save as to save it as a .po file (a translation).  The file name must include an extension for your language.  For example, ‘mappress-es_ES.po’  is for Spanish.  A list of valid language extensions is here.
  4. Translate the strings.
  5. When you’re done use menu ‘file->save’ to save the file again.  POEdit should create a .MO file (a compiled translation) with the same base name as your .PO file.
  6. Send me both the .PO and .MO files, and I’ll include them with all future versions of MapPress!

Updating an Existing Translation

MapPress texts change frequently so you may find there is an existing .PO file for your language but the translation isn’t up to date.  If that happens:

  1. Run POEdit and open the .po file.  For example, for Spanish open mappress-es_ES.po
  2. Use the menu Catalog->Update from POT file. Select the file mappress.pot or mappress.po
  3. Update any missing strings.
  4. Correct any fuzzy strings (they appear in a different color at the top of the file).  For each one, click on menu Edit->Translation is Fuzzy to remove the fuzzy indicator.  You can also hit ALT-U.
  5. Save your .PO file.  POEdit should re-generate the corresponding .MO file.
  6. Send me both the .PO and .MO files, and I’ll include them with all future versions of MapPress!

Still Stuck?

I’ll be happy to help.  Please contact me and let me know you’ve already taken the steps listed above.  Please send everything I might need to reproduce the problem, including any error messages and a URL or screenshots illustrating the problem.