Chris

Forum Replies Created

Viewing 15 posts - 331 through 345 (of 1,120 total)
  • Author
    Posts
  • in reply to: Unable to add new POI #16960
    Chris
    Keymaster

      Hi,

      Here’s some things to check:
      1. You need an API key. If you don’t have one, see the FAQ.
      2. The most common problem is that another plugin (or the theme) has loaded the Maps API twice. Google doesn’t allow that and it causes random bugs.
      Try deactivating ALL other plugins and switching to a standard theme like 2015 (for a moment). If the map is working in this state, reactivate one by one to find the problem.
      3. Try clearing the browser cache

      in reply to: Google Maps API Key issue when displaying maps via php #16947
      Chris
      Keymaster

        Hi,

        Try clearing your browser’s cache, it sounds like the javascript may be cached. You can also press F12 in your browser to see if there are any javascript messages.

        If that doesn’t help, please send a URL so I can see the problem.

        in reply to: Multiple POIs From Custom Field #16933
        Chris
        Keymaster

          To add two custom field values, you must use two separate custom field rows with the same field name (a WordPress requirement).

          Entering both addresses in a single field, even with a carriage return between them, won’t work – it’ll be treated as a single value.

          in reply to: Multiple POIs From Custom Field #16930
          Chris
          Keymaster

            Hi,

            I don’t support generating multiple POIs per post and the code will eventually be deprecated. But there is still some older code in the current version that might do what you want if you’re doing a 1-time load.

            To try it:
            1. Configure a single field for the ‘address’ in the MapPress settings.
            2. Edit a post and enter multiple values for that custom field. Use a separate for each POI, and format the rows as a shortcode. For example, for two POIs, enter:

            
            address = "200 el camino real" title = "title 1" body = "body 1" iconid = "blue-dot"
            
            address = "300 el camino real" title="title2" body="body 2" iconid="green-dot"
            

            You should also be able to use lat,lng – for example:

            
            address = "-32,22"
            lat = "-32" lng  = "22"
            
            in reply to: Multiple POIs From Custom Field #16928
            Chris
            Keymaster

              Hi,

              The automatic map generation is really designed to create 1 post per POI. However, you can combine the posts in any combination using a mashup. For example, try assigning the posts to a taxonomy (like categories or tags) to group them. Then it’s possible to do mashups based on the taxonomy terms – there are some examples here:
              http://mappresspro.com/mappress-documentation

              in reply to: Custom-field-value < – > automatic icon #16910
              Chris
              Keymaster

                Hi,

                The geocoding field setting takes a custom field name – not an icon name. So the icon can be different for each post – just vary the value stored in that custom field for each post. For example, post ‘A’ can have a green icon and post ‘B’ can have a blue one, by placing the values ‘green-dot’ or ‘blue-dot’ in the custom field in each post.

                A more flexible solution is to use the automatic icons, but in that case you must assign your posts to a taxonomy (category, tags, etc.).

                If neither of those work for your site, and you know PHP, then you can code a custom routine using the filter ‘mappress_poi_iconid’. There’s an example in the documentation.

                in reply to: Custom-field-value < – > automatic icon #16908
                Chris
                Keymaster

                  Hi,

                  For automatic icons there is no custom field selection, it’s based on taxonomies.

                  However, for automatic map generation, you can pick a custom field for the icon. Go to the ‘geocoding fields’ section in the MapPress settings. Where you have set ‘address line 1’, you can also set a custom field for ‘icon’.

                  To regenerate those automatic maps (for example, if you change the icon field), you can re-publish the posts. From the WordPress posts section use ‘bulk actions’ and then ‘edit’, and then ‘publish’.

                  in reply to: $ version is too old: undefined #16871
                  Chris
                  Keymaster

                    Hi,

                    I think I see the problem. There are actually two things going on.

                    1. The first is a bug: the message should say “jQuery version too old: ” and then your version number. I apparently broke the message in the last version. I just fixed this for the next one.

                    2. If the message is correct, a plugin or theme is loading an obsolete jQuery (> 6 years old), which will cause javascript errors. To find which one: deactivate ALL plugins (except MapPress) and switch to a standard theme for a moment. Then reactivate one by one until you see the error.

                    If the above don’t help, please let me know when the site is online (it says it’s down for maintenance), and provide a URL with a map, and I’ll take another look.

                    in reply to: POI Listing order not matching to database #16755
                    Chris
                    Keymaster

                      Hi,

                      The default order is alphabetical, but you can override this used the shortcode attribute sort=”false”, for example:
                      [mappress sort="false"]

                      There’s a list of the other shortcode attributes here:
                      http://mappresspro.com/mappress-documentation

                      in reply to: Root does not appear when you click the "Public Transit". #16642
                      Chris
                      Keymaster

                        Hi,

                        Thank you for the example. I researched this and it seems that the Google API does not fully support public transit in Japan:
                        https://code.google.com/p/gmaps-api-issues/issues/detail?id=7854

                        One solution may be to select ‘Google’ as the directions type instead of ‘inline’ in the MapPress settings. This will open a directions page at maps.google.com where the directions should work correctly.

                        in reply to: map showing above content with shortcode use #16641
                        Chris
                        Keymaster

                          Hi,

                          It’s hard for me to say – I only see part of the shortcode function, so it would help if you can paste the entire thing or email it to me. The default position setting only applies to ‘mappress’ shortcode, so that’s probably not the issue.

                          Is it possible the mastermap shortcode is echoing its output rather than returning it? You might try just returning a string like ‘mastermap here’ from the shortcode, with nothing else, to see that the shortcode output is positioned correctly without a map.

                          You might also want to look at the ‘mappress’ shortcode in file ‘mappress.php’ for an example of how the maps are output by default.

                          in reply to: Root does not appear when you click the "Public Transit". #16636
                          Chris
                          Keymaster

                            Hi,

                            I think Google says there is no route between those addresses. Does it work on maps.google.com?

                            If so, could you please past address A and addreess B here as text? I can’t copy them from the image.

                            in reply to: How to get mashup to show both post and page? #16635
                            Chris
                            Keymaster

                              Hi,

                              Check that you’ve select both post and page in the MapPress settings as being relevant for maps. Once that’s done, the query should look like this:

                              [mashup query="post_type=any"]
                              or
                              [mashup query="post_type=post,page"]

                              There are some other query examples here that may be helpful:
                              http://mappresspro.com/mappress-documentation

                              in reply to: Mashup Map display #16634
                              Chris
                              Keymaster

                                Hi,

                                The easiest way to show current results is:
                                [mashup query="current"]

                                If you tried that and it’s not working, perhaps you can provide a sample URL? Email me with the contact form if you don’t want to post it here.

                                As for the search query, it’s hard to tell if there’s an issue with the code or something else. What happens if you simplify it to use a fixed query that you know has some results? For example, if you know the term ‘apple’ has results, try:
                                <?php echo do_shortcode('[mashup query="post_type=any&posts_per_page=-1&s=apple"]'); ?>

                                in reply to: Separate zoom level for smartphone #16543
                                Chris
                                Keymaster

                                  Hi,

                                  There’s no way to set specific zoom levels based on screen size, but you could try letting the map automatically center and zoom itself:

                                  [mappress center="0" zoom="0"]

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