Chris

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 1,120 total)
  • Author
    Posts
  • in reply to: Update breaks my mashup query #22091
    Chris
    Keymaster

      Hi,

      Thanks for reporting this.  I think a change in 2.97 caused a bug in some of the mashup functionality.  It should be working again in 2.97.3, but please let me know if not.

      in reply to: Adding an ID to the map wraper. #22060
      Chris
      Keymaster

        Hi,

        By default the map web component has a “name” attribute where the name is either:

        • A name you specify using the shortcode, for example: [mappress name="myname" mapid="1234"]
        • If no name is assigned, then the plugin will use “mapp0” for the first map on the page, “mapp1” for the second, and so on.

        So for example, the first map is [mappress-map name="mapp0"]

        I think HTML spec for anchors allows you to refer to either an id or a name for a link.  So you could just use <a name="mapp0">.

        For the next plugin release, I’ll also add “id” to the web component to make this clearer.

        in reply to: tile usage policy Notice fromm Open Street Map #22046
        Chris
        Keymaster

          Hi, Just marking this as resolved (via email).  In case someone else has the same issue, this appeared to be a server issue, reported solution: another plugin was duplicating headers.  Headers related to policies were removed and policy was set at Nginx level.

          in reply to: Custom Map Style from Mapbox #22035
          Chris
          Keymaster

            Hi,

            I’m guessing you’re using Mapbox.  Mapbox will return empty tiles if your token isn’t authorized or if there’s another problem on their end (billing, etc.).

            Do you have a URL where I can see the error?  Or if you can provide a login to a staging site with the same problem, I can look there.

            Where are you getting an AJAX error?  The contact form on the site here seems to work for me.  If you’d like to send a URL or login, please use that instead of posting here.

             

            in reply to: Passing parameter to do_shortcode #22030
            Chris
            Keymaster

              Hi,

              I think when you use double braces for a shortcode, WordPress just outputs it as a string.

              Try with just one brace:

              echo do_shortcode(‘[mappress mapid="'.$mapid.'"]‘);

               

               

              in reply to: Prevent shapes being listed in POI list #22020
              Chris
              Keymaster
                Hi,
                I’m afraid not, I guess usually folks want to name the outlined area, so I never implemented that feature.  However:
                • It’s usually a lot easier to draw shapes using KML (for example with Google Earth, or lots of other sites).  They have better drawing tools, and you can snap to roads, etc.
                • As a bonus, if you use KML, MapPress does have an option to hide KMLs in the POI list.
                I hope that helps.  If not, let me know and I’ll look into an option to hide shapes, but it maybe be a few weeks before the next release.
                in reply to: Links in map open a new window #22016
                Chris
                Keymaster

                  Hi,

                  Thanks, I see what you want now. Unfortunately, this functionality (of opening a new tab on image click) is hardcoded in the plugin. I do plan to revisit those settings in a future release, but for now I’m afraid that’s the functionality.

                  If you’re familiar with PHP, you could try this:

                  1. In the ‘thumbnails’ setting, select ‘POI images’ – to turn off the featured images

                  2. In your theme’s functions.php add a little code to feed the featured image URL to the mashup POI template

                  add_filter('mappress_poi_props', function($props, $oid, $poi, $otype) {
                  $props['zzurl'] = get_the_post_thumbnail_url($oid, 'full');
                  return $props;
                  }, 10, 4);
                  

                  3. In the mashup popup template, use the URL to add an anchor link to the post:

                  
                  <div class="mapp-title"><a href="{{{poi.url}}}" target="_blank" rel="noopener">{{{poi.title}}}</a></div>
                  <a href="{{{poi.url}}}"><img src="{{{poi.props.zzurl}}}" /></a>
                  <div class="mapp-body">{{{poi.body}}}</div>
                  
                  in reply to: Links in map open a new window #22014
                  Chris
                  Keymaster

                    Hi,

                    If you use the mashup settings to control how the POIs open (without changing the template), it should apply the same behavior to both the POI title and the featured image.

                    in reply to: Links in map open a new window #22011
                    Chris
                    Keymaster

                      Hi,

                      There is a template section in MapPress Pro, it should be on the plugin settings page just after the ‘filters’ section.

                      Since you are using a mashup, you can just use the settings in the ‘Mashups’ section to control how the POIs open (in a popup, a new tab, or the same tab), without having to edit any templates.

                      in reply to: Importing CSV fails and I can’t see the actual error #21983
                      Chris
                      Keymaster

                        Hi,

                        I tried to replicate this a few times with the sample CSV file, but I didn’t get an error. Are you able to import the sample without errors?

                        Two other things to try:
                        1. There are some plugins that will display the WP logs, even if you don’t have FTP access, so it might be worth checking those out.
                        2. Deactivate ALL other plugins and switch to a standard theme (like twenty twenty-five). If the import works, you can reactivate one by one to find the error.

                        If you can share an administrator login to a staging site where I can see the problem then I can debug it there.

                        If you’d like to send the file, you can reach me with the contact form and I’ll reply. But from what you describe it sounds like the issue may be specific to your site.

                        in reply to: Adding a location by adding a pin? #21975
                        Chris
                        Keymaster

                          Hi,

                          Thanks for writing, that’s a good idea, but the UI is a bit tricky.

                          Note that it’s already possible to drop a marker using the drawing tools in Google Maps (the toolbar has an marker option in addition to shapes).

                          Leaflet doesn’t have anything like that, but you can add a marker at a nearby address (like the nearest city) and then drag it to the desired location.

                          in reply to: New travel line settings for Gutenberg Block #21927
                          Chris
                          Keymaster

                            Hi,

                            Looks like there was a bug, but it should be fixed in 2.95.9. Could you please test it again?

                            in reply to: Hard to find consistent icons… #21913
                            Chris
                            Keymaster

                              Hi, the icon designer is meant as a mini-editor, and it’s based on SVGs.

                              It’s not as full-featured as a dedicated icon editor, but there are lots of web-based editors that will work. One of the easiest is Google’s material icons: https://fonts.google.com/icons (unfortunately, they don’t have a ‘waterfall’ icon either). Maybe a site like this will work for you: https://icons8.com/icon/eX1rkIM7LjBM/waterfall.

                              Or, try chatGPT. It whipped up a very nice icon for me with this prompt: “create a 128×128 png icon of a waterfall in the style of Google material icons”.

                              Anyway, once you have created a custom PNG file it’s easy to use it in MapPress and display it on your map (see the documentation for details).

                              in reply to: where to translate “Get Directions”? #21805
                              Chris
                              Keymaster

                                The language files can be synced to the POT, but will be overwritten on upgrade. I think this is why WordPress went to the translate.wordpress.org site.

                                Note that translations now include both PHP and Javascript files.

                                It is an over-complicated mess, but not something I can control in the plugin.

                                in reply to: where to translate “Get Directions”? #21787
                                Chris
                                Keymaster

                                  Hi,

                                  MapPress supports standard WordPress translation techniques, but they’re not always easy:

                                  This used to work, but I’m not sure it’s still supported: https://mappresspro.com/translating-mappress/

                                  More recently, WordPress now wants translators to provide a complete translation. Here’s a tutorial:
                                  https://www.wpbeginner.com/wp-tutorials/how-to-translate-a-wordpress-plugin-in-your-language/

                                  Finally, there are various translation plugins which may work for you, and they can make this easier (especially for just one string).

                                Viewing 15 posts - 1 through 15 (of 1,120 total)