MapPress FAQ

Try this first

These simple steps will fix most issues and allow you to determine if there’s a conflict:

  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. 

These are the most common issues:

  1. Theme is missing the wp_footer() call
    See here for details: http://codex.wordpress.org/Function_Reference/wp_footer
  2. Theme or plugin loads obsolete version of jQuery 
    If the jQuery version is too old, you’ll see an error in your browser’s javacript console.  The minimum version is 1.7 (released 4 years ago).  You’ll need to update the theme or plugin or deactivate it.
  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 twice
    Google only allows the API to be loaded once.  You’ll need to deactivate the maps in your theme or plugin that is loading it.  Most themes include a checkbox for this purpose.  If not, you may be able to use code like this in ‘functions.php’.  You’ll need to replace ‘google-maps-api’ with the name the plugin/theme uses, so contact the author:

    function google() { wp_dequeue_script( 'google-maps-api' ); }
    add_action( 'admin_enqueue_scripts', 'my_et_pb_admin_scripts_styles', 99, 1 );


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.

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 can be 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.

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.

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.