We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    Hi therebechips,

    thanx for your reply,

    %26 will be outputted like %26

    "&" or "&" wouldn’t work either, so i guess i have to set an extra tv for the title in the bubble...

    cheers, j
      • 1416
      • 75 Posts
      I have a rather peculiar problem.

      I’ve checked around in the forums but only found things that I’ve tried already.

      I’m using MODx 0.9.6.3 and GoogleMap 1.3.2

      My snippet call is:
      [!GoogleMap? &key=`ABQIAAAAi...........` &maps=`mapid : map | address1 : Artillerig. 6 | zip : 11451 Stockholm | city : Sweden | lat : 59.332226 | lng : 18.080406 | title : Taurus | width : 300 | height : 400 | zoom : 9 | type : normal`!]


      And it generates the javascript nicely as it should.
      But in the <body> it only adds:
      <p><div id="map" style="width: px; height: px"></div></p>


      and the Google logo that is linked to the correct place. The slider is also added, but no map.
      http://www.taurus.se/contact.html is what I’m trying to fix.

      As you can see my snippet call is not correct. But for Sweden it needs to be called like that. If I delete Stockholm from zip, the link is pointed to somewhere in Finland.
      The oddest thing is when I tried switching places with lat and lng. No difference.
      So I deleted it. Seems like Google actually understands my call, it just won’t show the map that it is linked to. Strange.

      I have cleared away all other javascripts, and I also tried deleting my stylesheets. No difference.

      Any suggestions?

      Cheers
      Amrit
        • 26931
        • 2,314 Posts
        hi Amrit,

        i’m calling GoogleMap just with latitude and longitude, and leaving city, state and zip blank...maybe you should try to leave it blank for once, just to check

        cheers, j

          • 1416
          • 75 Posts
          Hi sharkbait.

          Nice name btw. laugh

          It worked when I tried this call instead:
          [[GoogleMap? &key=`ABQIAAAAi.........` &maps=`mapid : map | address1 : Artillerigatan 6 | city : Stockholm | state : Sweden | zip : 11451 | title : Taurus Kommunikation AB | width : 400 | height : 300 | zoom : 14 | type : normal`]]

          Just rearranged it and voila. laugh

          Cheers
          Amrit
            • 26931
            • 2,314 Posts
            Hi Amrit,

            great! ...saw it on your site that you worked it out smiley

            cheers, j
              • 16183
              • 1,390 Posts
              btw Amrit...you have <!--[endif]--><!--[endif]--> on your homepage....


              /k
                • 1164
                • 3 Posts
                I’m terebly sorry but I can’t get it to work the way you described it and get the following error:

                Parse error: parse error in \www\manager\includes\document.parser.class.inc.php(769) : eval()'d code on line 2
                


                Copied /pasted the example that was provide with the right Google id but without luck.
                  • 17329
                  • 53 Posts
                  Hi all,
                  I’ve been working on a forked version of this snippet that can display one map but many locations in a very flexible way.
                  I have no time to pack it nicely for distribution but if anybody is interested I can share what I have.
                  You can see the result here:
                  http://shagyafrance.fr/elevage/carte
                    • 29673
                    • 4 Posts
                    @lemestre

                    I would be interested in seeing what you have come up with. I also need one map with multiple locations on it.
                      • 17329
                      • 53 Posts
                      I took the time to put comments in the files.
                      Everything should be self explained but feel free to ask.
                      http://beodom.joyeurs.com/GoogleMap-2.0.zip