Chris

Forum Replies Created

Viewing 15 posts - 826 through 840 (of 1,120 total)
  • Author
    Posts
  • in reply to: Bootstrap tabs + MapPress, trigger resize? #11794
    Chris
    Keymaster

      Hi,

      You should be able to use either of the snippets below.  The only difference is the MapPress function re-centers the map after resizing it.

      You can remove the ‘alert’ line once it seems to be working:

      $(‘#showMap’).on(‘shown’,function(event){
      alert (“resizing”);
      mapp0.resize();
      });

      Or:

      $(‘#showMap’).on(‘shown’,function(event){
      alert (“resizing”);
      google.maps.event.trigger(mapp0.getMap(),‘resize’);
      });

      I hope that helps!

      in reply to: STYLED Maps #11784
      Chris
      Keymaster

        Hi,

        It looks like the JSON isn’t valid, but I can’t say exactly where it is going wrong.   You can check the validity of the JSON here, if that helps:
        http://jsonlint.com/

        It’s tough to read or edit JSON by hand.  Is it possible you can re-paste it verbatim from the Google styling tool?

        There are also some HTML and javascript errors on the page.  I don’t think they’re related to the styling problem, though:

        HTML1514: Extra “<body>” tag found. Only one “<body>” tag should exist per document.
        museum-map, line 163 character 313

        HTML1422: Malformed start tag. A self closing slash should be followed by a U+003E GREATER-THAN SIGN (>).
        museum-map, line 705 character 117

        HTML1409: Invalid attribute name character. Attribute names should not contain (“),(‘),(<), or (=).
        museum-map, line 705 character 117

        SCRIPT5007: Object expected
        no-ie.js, line 11 character 1

         

        in reply to: STYLED Maps #11782
        Chris
        Keymaster

          Hi,

          I think that’s a link to your post in this forum…  🙂

          in reply to: STYLED Maps #11779
          Chris
          Keymaster

            Hi,

            What do you mean by ‘hosed’?  The map is showing up?  It isn’t styled correctly?  Or something else?

            Please also provide a URL to a page with a map that’s not working – I can’t guess where it is from the home page.

            in reply to: Lost map after upgrade #11775
            Chris
            Keymaster

              Hi,

              When you say the map is not displaying – do you mean you can’t edit it in the post editor or you don’t see it when you view your blog?  If it’s the latter, please see the FAQ, it’s usually theme related.

              If that doesn’t help: please let me know what version you upgraded from, and provide a URL where I can view the problem.  If it’s an issue in the post editor, please also send a login so I can check it (you can use the contact form).

              in reply to: Widget V.2.40 vs 2.40.2 #11763
              Chris
              Keymaster

                For anyone else looking: this is resolved.

                2.40.2 had a bug that prevented the widget from using the theme’s before/after widget CSS.  It’s corrected in 2.40.3.

                in reply to: Widget V.2.40 vs 2.40.2 #11761
                Chris
                Keymaster

                  Hi,

                  I’d like to fix that, can you provide a URL where I can see the problem, or be a little more specific about what’s not working?

                  If you can send a login that would be even better so I can trace any problem.

                  in reply to: Bigger map in Shortcode – false? #11738
                  Chris
                  Keymaster

                    Hi,

                    Sure, check the documentation for the ‘maplinks’ shortcode parameter:

                    http://mappresspro.com/mappress-documentation

                    You can use it to specify which links to show for each map.  For example, this should show only the ‘center’ link for the map:

                    [mappress maplinks="center"]

                     

                    in reply to: POI's disappear on responsive theme #11704
                    Chris
                    Keymaster

                      Hi Miguel,

                      I don’t know either, but I’m guessing it’s something in your theme.  What happens if you use the 2012 theme with your other plugins disabled (i.e. a plain WP site)?

                      in reply to: Remove 'location' word #11700
                      Chris
                      Keymaster

                        Hi,

                        Yes, it’s possible.  You just need to modify the ‘map_poi_list’ template file – three’s an overview of how to modify the template files in the documentation.

                        I think it should work if you just remove this section:

                         <thead>
                          <tr>
                           <th></th>
                           <th><?php _e('Location', 'mappress');?></th>
                          </tr>
                         </thead>
                        in reply to: query #11674
                        Chris
                        Keymaster

                          Hi,

                          I think this is what you need:

                           

                          $x = "155,189";
                          
                          echo do_shortcode ( "[mashup query=\"post__in=$x\"]");
                          in reply to: Street View link as option with Map link #11665
                          Chris
                          Keymaster

                            Hi,

                            Sorry, MapPress only supports adding the default pegman.

                            If you’d like to do it yourself with javascript: you could set the street view for the map when a link is clicked.  See the Google docs for the details about how street view works.  To get the google map object associated with the first MapPress map on the page, use:

                            mapp0.getMap();

                            in reply to: Slow loading of maps #11661
                            Chris
                            Keymaster

                              Hi,

                              That is strange, maps should normally load in < 1 second.  They can appear slower if other scripts are executing from the theme or other plugins.

                              You can check if it’s something else by deactivating ALL of your other plugins and switching to the 2012 theme for a few minutes. If you get the site in that state, and it still seems slow, send me an email with the contact form and I’ll trace it for you.

                              You can also try the MapPress setting to load the maps last (in the bottom ‘misc’ section).  That should prevent the map loading from delaying other scripts on the page.

                              in reply to: IE8 shows no POI list in mashup #11653
                              Chris
                              Keymaster

                                Hi, there are ‘filters’ and ‘actions’ all over in WordPress (and in MapPress).  You can use them to perform your own processing:

                                http://codex.wordpress.org/Function_Reference/add_action

                                In this case:

                                add_action(‘mappress_map_display’, myfunction)

                                Where ‘myfunction’ is your own function.

                                in reply to: Slow loading of maps #11652
                                Chris
                                Keymaster

                                  Hi, it also seemed to me there was some slow down with Google yesterday.


                                  @HDaniell
                                  : on the home page the maps are each showing about 120 posts worth of locations.  The plugin has to read and format each post for output, so the time taken is primarily the time to display 250 posts.

                                  You can speed up the widgets quite a bit by limiting the number of posts returned.  Try setting “posts_per_page=50” or a smaller number to limit the maximum number of posts.  Or, if you can categorize the posts into sub-categories (or tags) you can select a smaller set of data.

                                  For the home page in particular: the markers in the widgets are probably too small for anyone to click anyway.  Instead of showing a dynamic map, take a screenshot of the map image and make it clickable; when users click the image they can be taken to the ‘event information’ page to get the details from the (slower) ‘live’ map.

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