Chris

Forum Replies Created

Viewing 15 posts - 916 through 930 (of 1,121 total)
  • Author
    Posts
  • in reply to: KMLin custom php map #10969
    Chris
    Keymaster

      Hi, to format code click the kitchen sink icon on the right of the editor toolbar, then change ‘paragraph’ format to ‘preformatted’.

      Sorry, I should’ve tested the code first.  There are two problems:

      1 – I gave you the wrong syntax.  The KML parameter should itself be an array with ‘url’ as an element (I thought I might eventually add more KML options).  Corrected code is below.

      2-  when a KML is added programmatically (vs. in the Map Editor)  it doesn’t have a center until the file is loaded.  I hadn’t considered that case and the map ends up centering on NULL, which gives a blank map.

      I can easily update the code to use (0,0) as the center if the KML isn’t loaded – but then the map won’t automatically center correctly.

      A better solution is to load the POIs asynchronously, but that may require a lot of re-coding.  Do you plan to set a map center explicitly, or did you need it to automatically center using the KML data?

      If you like, send me a note using the contact form and I can send you the 0,0 fix to try out right away.  Otherwise, I’ll work on the other solution but I can’t say yet when it will be ready.

       

      $mymap = new Mappress_Map(array("width" => "100%")); 
      $mypoi_1= new Mappress_Poi(array("iconid" => "green-dot", "title" => "KML Example", "type" => "kml", "kml" => array("url" => "http://kml-samples.googlecode.com/svn/trunk/kml/Region/polygon-min-max.kml"))); 
      $mypoi_2 = new Mappress_Poi(array("title" => "500 Chestnut St", "body" => "Independence National Park, Philadelphia, PA<br/>19106", "point" => array("lat" => 39.948712,"lng" => -75.15001))); 
      $mymap->pois = array($mypoi_1, $mypoi_2); 
      echo $mymap->display(array("directions"=>"none"));

       

      in reply to: How to Change Name of POI Marker #10968
      Chris
      Keymaster

        Hi,

        Just to close this out from our email exchange:

        The missing icon on the settings screen was a bug, it’ll be fixed in 2.38.9, which I hope to release tonight.  It’s already fixed in your system.

        The other issues were just about how to use the buttons in the updated editor.

        Good luck with your go-live!

        in reply to: How to Change Name of POI Marker #10961
        Chris
        Keymaster

          You can use the contact form from the menu on this site.

          in reply to: How to Change Name of POI Marker #10959
          Chris
          Keymaster

            Hi, sounds like a bug.  Why don’t you send a login and I’ll take a look.

            in reply to: How to Change Name of POI Marker #10955
            Chris
            Keymaster

              Hi,

              I’m not sure I understood, but you can still change the POI icon by clicking on it when you’re editing the POI (in the map editor).  You can also set a default icon in the settings screen, and there’s a PHP filter available to set it based on some other criteria.

              in reply to: How to Change Name of POI Marker #10952
              Chris
              Keymaster

                Hi,

                The settings only control how the marker appears in mashups, i.e. on this page:

                http://www.rowhouseco.com/grantmassie/google/

                But the POI always has its own title.  To change it, you can edit the POI in the map editor (in the WP post editor).

                in reply to: Beta (2.38.7) Marker List Formatting #10935
                Chris
                Keymaster

                  Where did you upload it to?  It should go in your theme directory, or in your child theme directory if you’re using a child theme.

                  If you just want to see if it’s working you can overwrite the version in the /templates directory of the plugin – just make a backup or the original first.

                  in reply to: default zoom for geocoded maps from wp app #10932
                  Chris
                  Keymaster

                    Hi,

                    Quick question: in the plugin settings do you have ‘Regenerate the map every time its post is published’ checked?  If so, it’ll ignore ALL edits (including the zoom) and re-create the map on each publish.

                    If that’s not the issue, though, I’ll login and check it out…

                    in reply to: default zoom for geocoded maps from wp app #10930
                    Chris
                    Keymaster

                      Hi,

                      The default zoom setting isn’t saved with the map or the POI (or at least it’s not supposed to be saved).

                      It’s intended as a workaround for not having zoom levels for individual POIs, in these 2 cases:

                      1) Initially displaying a mashup that has only a single lat/lng POI

                      2) The ‘center map’ link is clicked and there is only one lat/lng POI on the map

                      You should be able to edit a map and save it at any zoom.  I just tried it with a single POI by lat/lng, and it seemed to work for me.

                      I’m probably not understanding the issue.  Maybe you can explain further how to reproduce it, or send a login and explain how I can see it in your blog.

                      in reply to: Beta (2.38.7) Marker List Formatting #10929
                      Chris
                      Keymaster

                        Hi,

                        The parameters are in the beta documentation:

                        http://mappresspro.com/mappress-beta

                        The POI list doesn’t show the POI body normally, only the title and links.

                        You can modify the template and use $poi->get_body() to show it above the links.  You will also need to set the POIs to show the POI body on the settings screen.  Then the function will return the POI body as it was originally saved.

                         

                        in reply to: KMLin custom php map #10919
                        Chris
                        Keymaster

                          Hi, assuming you’ve already seen the example PHP code in the docs, you just need to set two things for the POI to display KML:

                          1) $poi->type = “kml”

                          2) $poi->kml = http://mykmlurl.kml

                           

                          For example:

                          $mypoi= new Mappress_Poi(array("iconid" => "green-dot", "title" => "KML Example", "type" => "kml", "kml" => "http://kml-samples.googlecode.com/svn/trunk/kml/Region/polygon-min-max.kml"));
                          in reply to: Beta (2.38.7) Marker List Formatting #10894
                          Chris
                          Keymaster

                            Hi,

                            I’ve just released version 2.38.8.  On the settings screen you can control what’s displayed in mashups (the POI title/body or the post title/body).  You can also use shortcode paramters to do the same thing.

                            I hope that helps, but let me know if you still need info about how to modify the template.

                            in reply to: Widget vs. Shortcode #10893
                            Chris
                            Keymaster

                              Hi, sorry my slow reply, I was working on a new release.

                              It looks like the widget is gone, but if you like, add the widget back and send a login and I’ll try to trace it.  It would also be helpful if you don’t mind upgrading to the latest version 2.38.8 so I can work from the latest code.

                              in reply to: No tooltips in mashups #10892
                              Chris
                              Keymaster

                                Hi Jon,

                                I looked at the page and it seems the ‘tooltips’ option is set to false.  You can control the option in the MapPress settings screen or the shortcode – you probably just need to turn it on.

                                If that’s not the problem, though, let me know and I’ll take another look.

                                in reply to: How to Change Name of POI Marker #10891
                                Chris
                                Keymaster

                                  Hi, sorry for my slow reply, I was working on the a new version.

                                  If I understand you want the POI to show the title it was saved with, rather than the title of the matching post (http://www.rowhouseco.com/grantmassie/90-9-chesterfield/).

                                  If that’s correct, please install the new version (2.38.8) and check the settings screen.  There is now an option to control whether the POI title and POI body are taken from the POI or from the underlying post.

                                  I hope that helps, but let me know if not.

                                Viewing 15 posts - 916 through 930 (of 1,121 total)