We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5811
    • 1,717 Posts
    Yes, the zoom and the position of the barycentre of all the markers are calculated (by Google API) for all the markers.
    It is not possible, with this release, to specify which markers,should be used to set the barycentre.
      • 5811
      • 1,717 Posts
      A new release of Gmaps for Revo is available in the MODx repository. The version 1.0.3.

      This version version fix an important issue with the displaying of the content of the infoboxes when friendly url are activated.


      Take care the cheatsheet document has "Gmaps 1.0.5" as title. This is a documentation typo. The footer of the document refers to Gmaps 1.0.3 ed 1.5.
        • 24731 ☆ A M B ☆
        • 211 Posts
        Excellent! I just updated and can confirm it is now working as expected.

        I'm curious what was the issue with the friendly urls? I remember you had done a test on your own website and it seemed to be working so at one point I thought it was something on my end with my setup.

        Another thing, this is more of a feature request if possible. I like on certain places where I use the map to have the infobox popup open as a default instead of requiring a click or a mouseover.

        It would be useful to have a switch setting on the snippet call to allow for this.

        Thanks for the great work and happy new year.

        Jose R. Lopez
          • 34004
          • 125 Posts
          Hi Coroico,

          Thanks very much for the Gmaps plugin - it's great!

          Just a question regarding caching and rendering multiple maps using get resources. I have a main map (the parent) and also a get resources call that will draw an additional 13 maps (13 children):

          
             [[!Gmaps? &mapId=`map0` &markers=`[[!GetIds? &ids=`c[[*id]]`]]` &mkrLatLngTv=`mkrLatLng` &mkrClick=`info` &infoboxAjaxId=`739` &kml=`TP100_2012_2.kml` &zoom=`8`]]
          
             
          [[getResources? &tpl=`infoPackTplMap` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &showUnpublished=`1` &limit=`0` &sortby=`{"menuindex":"ASC"}` &idx=`1`]]
          


          within infoPackTplMap is:

          <div class="grid_8">
              [[Gmaps? 
            	&mapId=`map[[+idx]]` 
            	&mapHeight=`250px` 
            	&marker=`[[+id]]` 
             	&zoom=`14` 
                  &mkrLatLngTv=`[[+tv.mkrLatLng]]`
              ]]
          </div>
          
          <div class="grid_8">
           <h3>[[+pagetitle]]</h3>
            [[+content]]
          </div>
          
          


          At the moment I am getting this: http://www.centurionrunning.com/volunteers/tp100/aid-stations/

          I've tried all sorts of combinations of caching and uncaching but can't seem to get the smaller maps in the getResources call to display just the marker that is assigned to them.

          Any ideas?

          [ed. note: ficklelife last edited this post 14 years, 8 months ago.]
            • 36506
            • 8 Posts
            Thank You Coroico for this plugin... I trying to install this plugin on my website, but I will ask You later if I have any problems...

            Now I'm confused...I trying to install but...I can see only Europe... but... I will come later with real question...

            THANK YOU FOR THIS! [ed. note: neehad last edited this post 14 years, 8 months ago.]
              • 5811
              • 1,717 Posts
              Hi ficklelife

              Did you tried with
              &markers=`[[+id]]`
              instead of
              &marker=`[[+id]]`
              inside the infoPackTplMap template ?

              <div class="grid_8">
                  [[!Gmaps?
                  &mapId=`map[[+idx]]`
                  &mapHeight=`250px`
                  &markers=`[[+id]]`
                  &zoom=`14`
                      &mkrLatLngTv=`[[+tv.mkrLatLng]]`
                  ]]
              </div>
                • 36624
                • 535 Posts
                hello.

                i have setup a map with multiple markers. All is ok, infoBox popup when i click on the marker.

                I didnt find a way to show the infobox from a external link outside the map (i would lilke to do a menu in a sidebar..)

                i know itsn't gmaps related but maybe someone here knows.

                i tried something like this
                <a href="javascript:displayInfoWindow(map,'ajax-infobox.txt',135,infobulle);"> myPlace </a>

                but im stuck with the V3 API // 135 is my marker
                  CTRL+SHIFT+U - Clear Cache
                  CTRL+SHIFT+H - Hiding Heft Panel
                  CTRL+SHIFT+N - Fast Create Resource
                  CTRL+ALT+P - Preview Recource (in edit resorce window)
                  CTRL+ALT+S - Save
                  • 5811
                  • 1,717 Posts
                  You can't call directly the displayInfoWindow function. But you could try:

                  href="ajax-infoboxbox.txt?mkrid=135"

                  where ajax-infoboxbox.txt is the friendly url name of the infobox ajaxholder document and 135 the marker id of the maker you would like see the infobox.

                  without FURL activated, try href="index.php?id=xxx&mkrid=135" where xxx is the id of the infobox ajaxholder document.

                  Try it and let me know the result
                    • 5811
                    • 1,717 Posts
                    At the end i think my previous solution can't work. You will get the ajax answer but you can't show up the infobox.

                    I don't see a solution for this.
                      • 36624
                      • 535 Posts
                      hello coroico, i did it last year manually with APIV" here http://www.antigel.ch/2011/Infos-pratiques/lieux.html (look at the source maybe it's helpful) but with your snippet (which is great by the way) i didnt find my way.. T
                        CTRL+SHIFT+U - Clear Cache
                        CTRL+SHIFT+H - Hiding Heft Panel
                        CTRL+SHIFT+N - Fast Create Resource
                        CTRL+ALT+P - Preview Recource (in edit resorce window)
                        CTRL+ALT+S - Save