Chris

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 1,093 total)
  • Author
    Posts
  • in reply to: Multiple maps on one page not loading #18552
    Chris
    Keymaster

    Hi,

    I don’t know, it’s something specific to the site.  My guess would be that may be related to either caching or the theme.

    Caching plugins can interfere with JavaScript execution, and most themes remove shortcodes from excerpts so there wouldn’t be any maps at all.

    You can narrow this down by doing these steps and checking the maps again after each one:

    1. Deactivate ALL other plugins

    2. Deactivate any caching (plugins or hosting service)

    3. Switch to a standard theme like 2020 (for a moment)

    in reply to: Locations not plotting in correct place #18545
    Chris
    Keymaster

    Sure, that seems like a reasonable solution.  It’ll depend on where you’re mapping and how much traffic you get.

    Like Algolia, Nominatim places markers in the center of street but only in some areas.  For Leaflet maps, the most accurate solution is probably MapBox.  They have high free usage limits so it’ll probably be free to use.

    If your front-end map views are low, the most accurate solution is Google.  However, they will be expensive if you have high traffic.

    For both Leaflet+MapBox and Google, you can style the maps to your taste – see the documentation for details on MapBox Studio or the Google Styled Maps Wizard, respectively.

    in reply to: Locations not plotting in correct place #18541
    Chris
    Keymaster

    Hi,

    Can you provide an example of one of these addresses?

    Different geocoders have different levels of accuracy.  Assuming you’re using Leaflet, the default Algolia geocoder will usually place markers in the center of the street, rather than at an exact house number.  You may want to switch to the MapBox geocoder instead, or use Google.

    There’s some more info about the various geocoders here:

    https://mappresspro.com/mappress-documentation/#toc-picking-a-geocoder

    in reply to: settings for automatic icons were lost / MashUps #18538
    Chris
    Keymaster

    Yes, that could happen – if they deactivate the plugin manually first, and then try to update it, they’ll get the free version.  If you use automatic update, it shouldn’t happen.

    in reply to: settings for automatic icons were lost / MashUps #18535
    Chris
    Keymaster

    Hi,

    There was an update (version 2.45) a long time ago that changed the structure of the automatic icons settings and required re-entering them.  Perhaps that’s what you’re seeing.

    From the 2.45 changelog:

    * Changed: autoicons function simplified: only 1 rule type is allowed, unfortunately you must *re-enter* any existing autoicons settings.

    in reply to: Update from 2.44.5 to 2.54.3 breaks all maps #18530
    Chris
    Keymaster

    I’m glad you found it.  A number of ‘performance’ plugins interfere like that.

    Sometimes the order in which the plugins are activated can change which one is dominant.  This may be why it worked before the update.

    in reply to: Update from 2.44.5 to 2.54.3 breaks all maps #18528
    Chris
    Keymaster

    Hi,

    This often happens if there’s a conflict with the theme or another plugin.  The easiest way to check is to deactivate ALL other plugins and switch to a standard theme (for a moment).  Then check the maps again.  If they’re working, reactivate one by one to find the culprit.

    You can also check the JavaScript console for errors (F12 in most browsers).

    The above steps and others are detailed in the FAQ.

    If that doesn’t help, please use the contact form to send the URL for the blog, and I’ll take a look.

    in reply to: Does MapPressPro integrate with any of the forms plugins? #18518
    Chris
    Keymaster

    Hi,

    That’s a feature I’d like to add, but it’s not currently supported by the plugin.

    Currently, if you click a marker, MapPress selects the corresponding list entry, but it doesn’t work the other way around, i.e. select a list entry and then highlight/open the marker.

    It might be possible to do that using some custom JavaScript, and if you’d like to take that route I can offer you some pointers on how it can be done.

    in reply to: New Map Header #18500
    Chris
    Keymaster

    Hi,

    You can’t disable search on a single map, but it is possible to enable/disable it for all mashups on the MapPress settings screen.

    I agree – the scrolling is annoying when the map isn’t at the top of the screen.  I just updated the plugin to version 2.53.8, which should only focus the search box when the map is being edited.

    in reply to: Disable POI links in Mashups #18493
    Chris
    Keymaster

    Hi,

    You can just change the ‘POI Click’ setting on the MapPress settings page to ‘Open POI’.  Then markers won’t be linked to posts.

    Additional customization can be done by editing the ‘mashup popup’ template in the ‘Templates’ section of the settings.

    in reply to: MapPress Pro 2.53.6 missing files in js directory? #18483
    Chris
    Keymaster

    Hi,

    You are correct, thanks for letting me know – a change in the build process caused those files to be deleted.

    Could you please try with 2.53.7 and let me know how that works for you?

    in reply to: Update not working #18478
    Chris
    Keymaster

    Hi,

    That message isn’t from MapPress, and it sounds like a theme problem – what does their tech support suggest?

    Perhaps you could switch themes, and then update MapPress.

    in reply to: Map using Mapbox shows oddly on large mashup #18472
    Chris
    Keymaster

    Hi,

    It looks like this is due to the theme interfering with the Leaflet map styles.  I’ve pasted one of the relevant theme sections below.
    In most browsers you can open development tools using F12, which will let you see what CSS is applied to a particular element.
    For example, it looks like the theme is applying background: #fff to ALL images on the page, including the map icons.
    Some options to fix it include:
    a) Switch themes
    b) Remove that CSS from the theme’s ‘styles.css’
    c) Add you own override at the bottom of syles.css, for example:
    .mapp-layout img { background: none !important; }
    Here’s the styles.css section:
    
    .post img,
    .type-page img,
    .type-feature img,
    .type-testimonial img,
    .type-portfolio img,
    .search-results .page img,
    .search-results .type-product img,
    .search-results .type-feature img,
    .search-results .type-testimonial img,
    .search-results .type-portfolio img,
    .post img.thumbnail,
    .type-page img.thumbnail,
    .type-feature img.thumbnail,
    .type-testimonial img.thumbnail,
    .type-portfolio img.thumbnail,
    .search-results .page img.thumbnail,
    .search-results .type-product img.thumbnail,
    .search-results .type-feature img.thumbnail,
    .search-results .type-testimonial img.thumbnail,
    .search-results .type-portfolio img.thumbnail {
      /* padding: .53em; */
      /* border: 1px solid #eaeaea; */
      background: #fff;
      max-width: 100%;
      height: auto;
    }
    in reply to: Mashup shortcde not limiting no post per page #18463
    Chris
    Keymaster

    Hi,

    I started simple with this shortcode, but got no results:

    [mashup query="post_type=Event"]

    The problem is the query needs the post_type slug not it’s name.  From the CPT plugin, we can see the slug for ‘Event’ posts is ‘events’.  So this query works:

    [mashup query="post_type=events"]

    Adding the date and meta_compare also seemed to work:

    [mashup query="post_type=events&meta_key=expires&meta_value=2020-02-04&meta_compare=>"]

    Hopefully the problem was just the slug, and that’s enough to help you get the PHP code working.

    in reply to: Mashup shortcde not limiting no post per page #18461
    Chris
    Keymaster

    Hi,

    I gave an example earlier using post date, but for a custom field the query would be:

    [mashup query="post_type=Event&meta_key=Expires&meta_value=20200201"]

    However, unlike queries by post_date, WP doesn’t provide any way to pass a dynamic date for the meta_value in the query string.

    One solution is to add some PHP to one of your theme’s template files to generate the map instead:

    <?php 
      $date = date('Ymd');
      $query = "post_type=Event&meta_key=Expires&meta_value=$date";
      echo do_shortcode('[mashup query="' . $query . '"]'); ?>
    ?>
    
Viewing 15 posts - 1 through 15 (of 1,093 total)